mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
Fix compilation on MSVC
- Fix a warning on 32bit for converting uint64_t to size_t for the buffer mapped range. - Fix a macro redifinition caused by including glfw3.h before windows.h Bug: Change-Id: I3897af55679d943b1dfc34b93bba7bd25d8fb7d6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/15320 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
f2ed2482a4
commit
3003aa622b
@@ -19,14 +19,16 @@
|
||||
#include "utils/GLFWUtils.h"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "GLFW/glfw3.h"
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
// Include windows.h before GLFW so GLFW's APIENTRY macro doesn't conflict with windows.h's.
|
||||
#if defined(DAWN_PLATFORM_WINDOWS)
|
||||
# include "common/windows_with_undefs.h"
|
||||
#endif // defined(DAWN_PLATFORM_WINDOWS)
|
||||
|
||||
#include "GLFW/glfw3.h"
|
||||
|
||||
#if defined(DAWN_USE_X11)
|
||||
# include "common/xlib_with_undefs.h"
|
||||
#endif // defined(DAWN_USE_X11)
|
||||
|
||||
Reference in New Issue
Block a user