summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-01-24 15:32:01 +0000
committerJosé Fonseca <jfonseca@vmware.com>2011-07-11 20:05:24 +0100
commita3e23e09bf07103de0ea7bf0fb9fb89608cc6aa0 (patch)
tree7b50d581bc67527389afa323ef2fb7f05e64899e
parent873978d36e0d61b3e4ac947c9f957a15edb7d93f (diff)
downloadglut-a3e23e09bf07103de0ea7bf0fb9fb89608cc6aa0.tar.gz
glut: Automatic library linkage only on MSVC.
-rw-r--r--include/GL/glut.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/GL/glut.h b/include/GL/glut.h
index f574f1d..022378f 100644
--- a/include/GL/glut.h
+++ b/include/GL/glut.h
@@ -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. */