Moving more Windows-specific header stuff over to the Windows-specific header file
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1029 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
d526869dee
commit
dbc94b3d56
@ -148,21 +148,6 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if TARGET_HOST_MS_WINDOWS
|
||||
# define HAVE_VFPRINTF 1
|
||||
#endif
|
||||
|
||||
/* MinGW may lack a prototype for ChangeDisplaySettingsEx() (depending on the version?) */
|
||||
#if TARGET_HOST_MS_WINDOWS && !defined(ChangeDisplaySettingsEx)
|
||||
LONG WINAPI ChangeDisplaySettingsExA(LPCSTR,LPDEVMODEA,HWND,DWORD,LPVOID);
|
||||
LONG WINAPI ChangeDisplaySettingsExW(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID);
|
||||
# ifdef UNICODE
|
||||
# define ChangeDisplaySettingsEx ChangeDisplaySettingsExW
|
||||
# else
|
||||
# define ChangeDisplaySettingsEx ChangeDisplaySettingsExA
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) || defined(__WATCOMC__)
|
||||
/* strdup() is non-standard, for all but POSIX-2001 */
|
||||
#define strdup _strdup
|
||||
|
@ -48,6 +48,21 @@
|
||||
#endif
|
||||
|
||||
|
||||
#define HAVE_VFPRINTF 1
|
||||
|
||||
/* MinGW may lack a prototype for ChangeDisplaySettingsEx() (depending on the version?) */
|
||||
#if !defined(ChangeDisplaySettingsEx)
|
||||
LONG WINAPI ChangeDisplaySettingsExA(LPCSTR,LPDEVMODEA,HWND,DWORD,LPVOID);
|
||||
LONG WINAPI ChangeDisplaySettingsExW(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID);
|
||||
# ifdef UNICODE
|
||||
# define ChangeDisplaySettingsEx ChangeDisplaySettingsExW
|
||||
# else
|
||||
# define ChangeDisplaySettingsEx ChangeDisplaySettingsExA
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
/* Structure Definitions */
|
||||
|
||||
typedef struct tagSFG_PlatformDisplay SFG_PlatformDisplay;
|
||||
struct tagSFG_PlatformDisplay
|
||||
|
Reference in New Issue
Block a user