OSDN Git Service

Fix the unittests Ninja build.
[android-x86/external-swiftshader.git] / tests / unittests / BUILD.gn
index 10f5fa5..7cb1cc1 100644 (file)
@@ -31,7 +31,11 @@ test("swiftshader_unittests") {
 
   include_dirs = [ "../../include" ]  # Khronos headers
 
-  defines = [ "GL_GLEXT_PROTOTYPES" ]
+  defines = [
+    "GL_GLEXT_PROTOTYPES",
+    "GL_APICALL=",
+    "GLAPI=",
+  ]
 
   # Make sure we're loading SwiftShader's libraries, not ANGLE's or the system
   # provided ones. On Windows an explicit LoadLibrary("swiftshader\lib*.dll")