mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-09-22 22:48:08 +03:00
Windows: #undef min / max in portab.h
This commit is contained in:
@@ -21,8 +21,6 @@
|
||||
#include <stdlib.h>
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#undef max
|
||||
#undef min
|
||||
#else // _WIN32
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
@@ -28,6 +28,15 @@
|
||||
#include <stdint.h>
|
||||
#include "config.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
# ifdef min
|
||||
# undef min
|
||||
# endif
|
||||
# ifdef max
|
||||
# undef max
|
||||
# endif
|
||||
# define NOMINMAX
|
||||
#endif
|
||||
#define min(x,y) ((x) < (y) ? (x) : (y))
|
||||
#define max(x,y) ((x) > (y) ? (x) : (y))
|
||||
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
*
|
||||
*/
|
||||
#include <windows.h>
|
||||
#undef min
|
||||
#undef max
|
||||
#include <stdio.h>
|
||||
#include <signal.h>
|
||||
#include "win/console.h"
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
*/
|
||||
#include <windows.h>
|
||||
#include <commctrl.h>
|
||||
#undef min
|
||||
#undef max
|
||||
#include <SDL_syswm.h>
|
||||
#include "menu.h"
|
||||
#include "gfx_private.h"
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
*
|
||||
*/
|
||||
#include <windows.h>
|
||||
#undef min
|
||||
#undef max
|
||||
#include <time.h>
|
||||
#include <SDL_syswm.h>
|
||||
#include "system.h"
|
||||
|
||||
Reference in New Issue
Block a user