Index: ui/gl/gl_bindings.h |
diff --git a/ui/gl/gl_bindings.h b/ui/gl/gl_bindings.h |
index 62952f54a31059b3a27970036511f14fbbc2df5c..1231f0bfe4bc97af789187eaf94f2f5eb080f672 100644 |
--- a/ui/gl/gl_bindings.h |
+++ b/ui/gl/gl_bindings.h |
@@ -10,6 +10,14 @@ |
// the X11 headers on linux, which define all kinds of macros that are |
// liable to cause conflicts. |
+// GL headers may include inttypes.h and so we need to ensure that |
Mark Dittmer
2016/04/18 18:03:03
piman@, agl@ helped me debug this issue [1] and re
|
+// __STDC_FORMAT_MACROS is defined in order for //base/format_macros.h to |
+// function correctly. See comment and #error message in //base/format_macros.h |
+// for details. |
+#if defined(OS_POSIX) && !defined(__STDC_FORMAT_MACROS) |
+#define __STDC_FORMAT_MACROS |
+#endif |
+ |
#include <GL/gl.h> |
#include <GL/glext.h> |
#include <EGL/egl.h> |