summaryrefslogtreecommitdiffstats
path: root/src/mapi/glapi/gen/gl_gentable.py
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-10-10 18:13:25 -0700
committerVinson Lee <[email protected]>2013-12-07 14:31:01 -0800
commit965cde9232ca6c704ac31e924c15ddf39c58082d (patch)
tree94979c635903023b07bde819d9f8dc060d2a598d /src/mapi/glapi/gen/gl_gentable.py
parent797894036d1196805f02a2428fff82ece5855af7 (diff)
glapi: Do not include dlfcn.h on Windows.
This patch fixes this MinGW build error. CC glapi_gentable.lo glapi_gentable.c:47:19: fatal error: dlfcn.h: No such file or directory Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mapi/glapi/gen/gl_gentable.py')
-rw-r--r--src/mapi/glapi/gen/gl_gentable.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mapi/glapi/gen/gl_gentable.py b/src/mapi/glapi/gen/gl_gentable.py
index fa9626825ee..35dddc7a088 100644
--- a/src/mapi/glapi/gen/gl_gentable.py
+++ b/src/mapi/glapi/gen/gl_gentable.py
@@ -50,7 +50,9 @@ header = """/* GLXEXT is the define used in the xserver when the GLX extension i
#include <execinfo.h>
#endif
+#ifndef _WIN32
#include <dlfcn.h>
+#endif
#include <stdlib.h>
#include <stdio.h>