X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_internal.h;h=cea8ad81d3b7929301a0a6712f3fac6b86ba77a4;hb=fe1aeed5aa76aaefcbff66c7d60768d8f83c7748;hp=7205e7f9c321e436c6a032bb7fc30ff50cfdacb8;hpb=aa4643b483379e0f1e40b8abc6584363cf395216;p=freeglut diff --git a/src/freeglut_internal.h b/src/freeglut_internal.h index 7205e7f..cea8ad8 100644 --- a/src/freeglut_internal.h +++ b/src/freeglut_internal.h @@ -36,12 +36,12 @@ /* * Freeglut is meant to be available under all Unix/X11 and Win32 platforms. */ -#if !defined(_WIN32) -# define TARGET_HOST_UNIX_X11 1 -# define TARGET_HOST_WIN32 0 -#else +#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) # define TARGET_HOST_UNIX_X11 0 # define TARGET_HOST_WIN32 1 +#else +# define TARGET_HOST_UNIX_X11 1 +# define TARGET_HOST_WIN32 0 #endif #define FREEGLUT_MAX_MENUS 3 @@ -61,7 +61,10 @@ #if TARGET_HOST_WIN32 #include #include +#include +#endif +#if defined(_MSC_VER) #define strdup _strdup #endif