mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 17:35:30 +00:00
DAWN_PLATFORM and DAWN_COMPILER macro improvements
Change #if DAWN_PLATFORM_XXX to #if DAWN_PLATFORM_IS(XXX) To prevent #ifdef usage and reference without including dawn/common/Platform.h Also change #if DAWN_COMPILER_XXX to # if DAWN_COMPILER_IS(XXX) Bug: dawn:1447 Change-Id: If6c9dab15fd2676f9a087507f5efcceeff468d33 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/92625 Commit-Queue: Shrek Shao <shrekshao@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
#include "dawn/native/opengl/OpenGLFunctions.h"
|
||||
|
||||
// Remove windows.h macros after glad's include of windows.h
|
||||
#if defined(DAWN_PLATFORM_WINDOWS)
|
||||
#if DAWN_PLATFORM_IS(WINDOWS)
|
||||
#include "dawn/common/windows_with_undefs.h"
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user