Fix compilation of the GL backend on Windows

The generated OpenGLFunctionsBase code uses the MemoryBarrier identifier
which is a macro defined in windows.h. Undefined it in
windows_with_undefs.

BUG=dawn:165

Change-Id: I6fcfef8fa14074e946d6c13536c1ae33b38c2ac2
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/8160
Reviewed-by: Jiawei Shao <jiawei.shao@intel.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez 2019-06-14 08:50:42 +00:00 committed by Commit Bot service account
parent df69f24824
commit 55ab6aacac
1 changed files with 3 additions and 0 deletions

View File

@ -28,4 +28,7 @@
// Macros defined for ANSI / Unicode support
#undef GetMessage
// Macros defined to produce compiler intrinsics
#undef MemoryBarrier
#endif // COMMON_WINDOWS_WITH_UNDEFS_H_