Avoid dependency on D3D when this backend is not enabled
Change-Id: If5b93504278b8e64a92f243e2c4533f36be3a632
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/202094
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
diff --git a/src/dawn/native/Surface.h b/src/dawn/native/Surface.h
index 3907328..d97cf0e 100644
--- a/src/dawn/native/Surface.h
+++ b/src/dawn/native/Surface.h
@@ -40,9 +40,9 @@
#include "dawn/common/Platform.h"
-#if DAWN_PLATFORM_IS(WINDOWS)
+#if defined(DAWN_USE_WINDOWS_UI)
#include "dawn/native/d3d/d3d_platform.h"
-#endif // DAWN_PLATFORM_IS(WINDOWS)
+#endif // defined(DAWN_USE_WINDOWS_UI)
// Forward declare IUnknown
// GetCoreWindow needs to return an IUnknown pointer