Three supported win32 compilation environments: MSVC, Cygwin and MingW32
The windows mmsystem header need only be included internally to freeglut strdup vs _strdup is specific to the MS compiler git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@430 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
b5452aeafe
commit
54ba1965ee
@ -36,12 +36,12 @@
|
|||||||
/*
|
/*
|
||||||
* Freeglut is meant to be available under all Unix/X11 and Win32 platforms.
|
* Freeglut is meant to be available under all Unix/X11 and Win32 platforms.
|
||||||
*/
|
*/
|
||||||
#if !defined(_WIN32)
|
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__)
|
||||||
# define TARGET_HOST_UNIX_X11 1
|
|
||||||
# define TARGET_HOST_WIN32 0
|
|
||||||
#else
|
|
||||||
# define TARGET_HOST_UNIX_X11 0
|
# define TARGET_HOST_UNIX_X11 0
|
||||||
# define TARGET_HOST_WIN32 1
|
# define TARGET_HOST_WIN32 1
|
||||||
|
#else
|
||||||
|
# define TARGET_HOST_UNIX_X11 1
|
||||||
|
# define TARGET_HOST_WIN32 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define FREEGLUT_MAX_MENUS 3
|
#define FREEGLUT_MAX_MENUS 3
|
||||||
@ -61,7 +61,10 @@
|
|||||||
#if TARGET_HOST_WIN32
|
#if TARGET_HOST_WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <windowsx.h>
|
#include <windowsx.h>
|
||||||
|
#include <mmsystem.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
#define strdup _strdup
|
#define strdup _strdup
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user