Skip to content

Commit

Permalink
Fix some minor warnings about HMONITOR_DECLARED being redefined
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotmiranda committed Sep 19, 2024
1 parent 9ea29e2 commit 223080a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
6 changes: 4 additions & 2 deletions platforms/win32/vm/sqWin32DirectInput.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@
#include <ole2.h>
#include "sq.h"
#ifdef __MINGW32__
#define HMONITOR_DECLARED
#undef WINNT
# ifndef HMONITOR_DECLARED
# define HMONITOR_DECLARED
# endif
# undef WINNT
#endif

#include <dinput.h>
Expand Down
8 changes: 4 additions & 4 deletions platforms/win32/vm/sqWin32GUID.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
#include <Windows.h>

#ifdef __MINGW32__
#define HMONITOR_DECLARED
#undef WINNT
# ifndef HMONITOR_DECLARED
# define HMONITOR_DECLARED
# endif
# undef WINNT
#endif

#include <ddraw.h>
Expand All @@ -13,5 +15,3 @@
#include <d3d.h>
#include <dinput.h>
#include <unknwn.h>


5 changes: 4 additions & 1 deletion platforms/win32/vm/sqWin32Window.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* Option -> Right ALT
*
*****************************************************************************/

#include <Windows.h>
#include <windowsx.h>
#include <dbt.h>
Expand All @@ -43,7 +44,9 @@
/** Not needed in cygwin **/
# define COMPILE_MULTIMON_STUBS
# undef SM_CMONITORS
# define HMONITOR_DECLARED
# ifndef HMONITOR_DECLARED
# define HMONITOR_DECLARED
# endif
# include "multimon.h"
#endif /* defined(__MINGW32_VERSION) && (__MINGW32_MAJOR_VERSION < 3) */

Expand Down

0 comments on commit 223080a

Please sign in to comment.