diff test/testdyngl.c @ 1402:d910939febfa

Use consistent identifiers for the various platforms we support. Make sure every source file includes SDL_config.h, so the proper system headers are chosen.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Feb 2006 08:46:50 +0000
parents 2b7e0180a72c
children b5d4f280c960
line wrap: on
line diff
--- 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];
 	}