瀏覽代碼

Undefine COMPILER symbol

Stefan Siegl 10 年之前
父節點
當前提交
ad09ee0993
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      php_v8js_macros.h

+ 6 - 0
php_v8js_macros.h

@@ -25,6 +25,12 @@ extern "C" {
 #include "php_v8js.h"
 }
 
+#ifdef _WIN32
+/* On Windows a symbol COMPILER is defined.  However v8.h has an enum with that
+ * name which hence would be broken unless undefined here. */
+#undef COMPILER
+#endif
+
 #include <v8.h>
 
 #include <chrono>