OSDN Git Service

glut: Automatic library linkage only on MSVC.
authorJosé Fonseca <jfonseca@vmware.com>
Sat, 24 Jan 2009 15:32:01 +0000 (15:32 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 24 Jan 2009 15:32:01 +0000 (15:32 +0000)
include/GL/glut.h

index f574f1d..022378f 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
 
 /* To disable automatic library usage for GLUT, define GLUT_NO_LIB_PRAGMA
    in your compile preprocessor options. */
-# if !defined(GLUT_BUILDING_LIB) && !defined(GLUT_NO_LIB_PRAGMA)
+# if defined(_MSC_VER) && !defined(GLUT_BUILDING_LIB) && !defined(GLUT_NO_LIB_PRAGMA)
 #  pragma comment (lib, "winmm.lib")      /* link with Windows MultiMedia lib */
 /* To enable automatic SGI OpenGL for Windows library usage for GLUT,
    define GLUT_USE_SGI_OPENGL in your compile preprocessor options.  */