glapi: Do not include dlfcn.h on Windows.
authorVinson Lee <vlee@freedesktop.org>
Fri, 11 Oct 2013 01:13:25 +0000 (18:13 -0700)
committerVinson Lee <vlee@freedesktop.org>
Sat, 7 Dec 2013 22:31:01 +0000 (14:31 -0800)
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 <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mapi/glapi/gen/gl_gentable.py

index fa9626825ee9cc5b650bc32ca43974284abce2ce..35dddc7a088c2a24c00087858f2a412ab679252f 100644 (file)
@@ -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>