diff options
Diffstat (limited to 'Build/source/texk/web2c/window/win32.c')
-rw-r--r-- | Build/source/texk/web2c/window/win32.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/window/win32.c b/Build/source/texk/web2c/window/win32.c index 844e4b2e935..a520202d3d4 100644 --- a/Build/source/texk/web2c/window/win32.c +++ b/Build/source/texk/web2c/window/win32.c @@ -11,10 +11,15 @@ #ifdef WIN32WIN #include <windows.h> -#ifdef __MINGW32__ -static void Win32Error(const char *caller); +#ifndef min +#define min(a,b) ((a) < (b) ? (a) : (b)) +#endif +#ifndef max +#define max(a,b) ((a) < (b) ? (b) : (a)) #endif +static void Win32Error(const char *caller); + /* The following constant enables some hack that should allow the window to process its messages. Basically, the principle is to @@ -212,7 +217,6 @@ mf_win32_paintrow (screenrow row, ReleaseMutex(hMutex); } -#ifdef __MINGW32__ static void Win32Error(const char *caller) { LPVOID lpMsgBuf; @@ -231,7 +235,6 @@ static void Win32Error(const char *caller) /* Free the buffer. */ LocalFree( lpMsgBuf ); } -#endif LRESULT APIENTRY WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam) { |