Mesa (gallium-0.2): glut: Automatic library linkage only on MSVC.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Sat Jan 24 15:33:23 UTC 2009


Module: Mesa
Branch: gallium-0.2
Commit: 436777883241e9b9c02ad7fce55ec7ff7b89ac3d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=436777883241e9b9c02ad7fce55ec7ff7b89ac3d

Author: José Fonseca <jfonseca at vmware.com>
Date:   Sat Jan 24 15:32:01 2009 +0000

glut: Automatic library linkage only on MSVC.

---

 include/GL/glut.h |    2 +-
 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.  */




More information about the mesa-commit mailing list