From: José Fonseca Date: Sat, 24 Jan 2009 15:32:01 +0000 (+0000) Subject: glut: Automatic library linkage only on MSVC. X-Git-Tag: 062012170305~17580^2~496^2~85 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=436777883241e9b9c02ad7fce55ec7ff7b89ac3d;p=profile%2Fivi%2Fmesa.git glut: Automatic library linkage only on MSVC. --- 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. */