Added check for FREEGLUT_DLL to allow static & DLL build on Windows.

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@41 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dheyse 2002-12-10 15:39:54 +00:00
parent 55baab1f4e
commit cb0828db0e

View File

@ -36,7 +36,16 @@
* Under windows, we've got some issues to solve
*/
#if defined(WIN32)
#if 0
# include <windows.h>
# include <windowsx.h>
# include <mmsystem.h>
# define WINDOWS
# pragma comment (lib, "winmm.lib") /* link with Windows MultiMedia lib */
# pragma comment (lib, "opengl32.lib") /* link with Microsoft OpenGL lib */
# pragma comment (lib, "glu32.lib") /* link with OpenGL Utility lib */
//#if defined(_USRDLL)
//# if defined(FREEGLUTLIB_EXPORTS)
#if defined(FREEGLUT_DLL)
# if defined(FREEGLUT_LIBRARY_BUILD)
# define FGAPI __declspec(dllexport)
# else
@ -44,19 +53,11 @@
# endif
# define FGAPIENTRY __stdcall
#else
# include <windows.h>
# include <windowsx.h>
# include <mmsystem.h>
# define WINDOWS
# define FGAPI
# define FGAPIENTRY
# pragma comment (lib, "freeglut.lib") /* link with Win32 freeglut lib */
#endif
#pragma comment (lib, "winmm.lib") /* link with Windows MultiMedia lib */
#pragma comment (lib, "opengl32.lib") /* link with Microsoft OpenGL lib */
#pragma comment (lib, "glu32.lib") /* link with OpenGL Utility lib */
#pragma comment (lib, "freeglut.lib") /* link with Win32 freeglut lib */
#else
# define FGAPI
# define FGAPIENTRY