Fixed DrawIcon with mingw

This commit is contained in:
jsalmon3 2002-08-07 01:41:48 +00:00
parent d92f5b1253
commit e655146ab7
4 changed files with 12 additions and 3 deletions

View file

@ -104,7 +104,7 @@
#endif
#if defined(WIN32) && defined(DEBUG)
#if defined(__MINGW32__) && defined(DEBUG)
// GDB + MINGW doesn't like free(0)
#include <stdlib.h>
#define free(x) do { void* __x; __x=(x); if( __x ) free( __x ); } while(0)

View file

@ -51,12 +51,21 @@
#define _WIN32_WINNT 0x0400
#define WINVER 0x0400
#endif
#ifdef __MINGW32__
#define DrawIcon WinDrawIcon
#endif
#include <winsock2.h>
#include <windows.h>
#include <winsock.h>
//#include <ws2tcpip.h>
#ifdef __MINGW32__
#undef DrawIcon
#endif
// MS Knowledge base fix for SIO_GET_INTERFACE_LIST with NT4.0 ++
#define SIO_GET_INTERFACE_LIST 0x4004747F
#define IFF_UP 1

View file

@ -39,7 +39,7 @@
#include <inttypes.h>
#else
#if defined(_MSC_VER) && !defined(_WIN32_WCE)
#include "windows.h"
#include <windows.h>
#endif
#include <stdint.h>
#endif // BSD

View file

@ -50,7 +50,7 @@
#endif
#ifdef USE_WIN32
#include <winsock.h>
#include "net_lowlevel.h"
#endif
#include "video.h"