MinGW is lacking a prototype for ChangeDisplaySettingsEx, so supply one in

this case. Note that this should better be handled via autoconf than via cpp.


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@652 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
spanne 2005-07-01 11:42:27 +00:00
parent 0377776087
commit 50c4e7b82a
2 changed files with 19 additions and 0 deletions

View File

@ -1070,4 +1070,12 @@ VisibilityNotify, so we have to handle the window status callback in the
former case, too. This fixes bug #763442 (Call the visibility callback when former case, too. This fixes bug #763442 (Call the visibility callback when
minimizing a window). minimizing a window).
**************************************************************************
* Changes on July 1, 2005.
**************************************************************************
(277) Removed redundant files from EXTRA_DIST. (277) Removed redundant files from EXTRA_DIST.
(278) MinGW is lacking a prototype for ChangeDisplaySettingsEx, so
supply one in this case. Note that this should better be handled via
autoconf than via cpp.

View File

@ -62,6 +62,17 @@
#include <TCHAR.H> #include <TCHAR.H>
#endif #endif
/* TODO: MinGW is lacking a prototype, this should better be handled via autoconf! */
#ifndef 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) #if defined(_MSC_VER)
#define strdup _strdup #define strdup _strdup
#endif #endif