test/testdyngl.c
changeset 1402 d910939febfa
parent 1386 2b7e0180a72c
child 1436 b5d4f280c960
--- a/test/testdyngl.c	Tue Feb 21 08:34:45 2006 +0000
+++ b/test/testdyngl.c	Tue Feb 21 08:46:50 2006 +0000
@@ -96,16 +96,18 @@
 	SDL_Event event;
 	int done=0;
 	GLfloat pixels[NB_PIXELS*3];
-#if defined(_WIN32)
-	char *gl_library = "OpenGL32.DLL";
+#if defined(__IRIX__)
+	const char *gl_library = "libGL.so";
+#elif defined(__MACOSX__)
+	const char *gl_library = "/usr/X11R6/lib/libGL.1.dylib";
 #elif defined(__QNXNTO__)
-	char *gl_library = "libGL.so.3";
-#elif defined(_SGI_SOURCE)
-	char *gl_library = "libGL.so";
+	const char *gl_library = "libGL.so.3";
+#elif defined(__WIN32__)
+	const char *gl_library = "OpenGL32.DLL";
 #else
-	char *gl_library = "libGL.so.1";
+	const char *gl_library = "libGL.so.1";
 #endif
-	
+
 	if (argv[1]) {
 		gl_library = argv[1];
 	}