test/testdyngl.c
changeset 1402 d910939febfa
parent 1386 2b7e0180a72c
child 1436 b5d4f280c960
     1.1 --- a/test/testdyngl.c	Tue Feb 21 08:34:45 2006 +0000
     1.2 +++ b/test/testdyngl.c	Tue Feb 21 08:46:50 2006 +0000
     1.3 @@ -96,16 +96,18 @@
     1.4  	SDL_Event event;
     1.5  	int done=0;
     1.6  	GLfloat pixels[NB_PIXELS*3];
     1.7 -#if defined(_WIN32)
     1.8 -	char *gl_library = "OpenGL32.DLL";
     1.9 +#if defined(__IRIX__)
    1.10 +	const char *gl_library = "libGL.so";
    1.11 +#elif defined(__MACOSX__)
    1.12 +	const char *gl_library = "/usr/X11R6/lib/libGL.1.dylib";
    1.13  #elif defined(__QNXNTO__)
    1.14 -	char *gl_library = "libGL.so.3";
    1.15 -#elif defined(_SGI_SOURCE)
    1.16 -	char *gl_library = "libGL.so";
    1.17 +	const char *gl_library = "libGL.so.3";
    1.18 +#elif defined(__WIN32__)
    1.19 +	const char *gl_library = "OpenGL32.DLL";
    1.20  #else
    1.21 -	char *gl_library = "libGL.so.1";
    1.22 +	const char *gl_library = "libGL.so.1";
    1.23  #endif
    1.24 -	
    1.25 +
    1.26  	if (argv[1]) {
    1.27  		gl_library = argv[1];
    1.28  	}