Browse Source

Fix Windows build

pull/527/head 1.0.0
Anders Jenbo 6 years ago
parent
commit
71d8a0071c
  1. 5
      Source/diablo.cpp
  2. 5
      SourceX/miniwin/misc.cpp
  3. 5
      defs.h

5
Source/diablo.cpp

@ -3,11 +3,6 @@
#include "../DiabloUI/diabloui.h"
#include <config.h>
#ifdef _MSC_VER
#define strcasecmp _stricmp
#define strncasecmp _strnicmp
#endif
DEVILUTION_BEGIN_NAMESPACE
HWND ghMainWnd;

5
SourceX/miniwin/misc.cpp

@ -8,11 +8,6 @@
#include "DiabloUI/diabloui.h"
#include "DiabloUI/dialogs.h"
#ifdef _MSC_VER
#define strcasecmp _stricmp
#define strncasecmp _strnicmp
#endif
#if defined(USE_SDL1) && defined(RETROFW)
#include <unistd.h>
#endif

5
defs.h

@ -180,3 +180,8 @@
#define SwapLE16 SDL_SwapLE16
#define ErrSdl() ErrDlg("SDL Error", SDL_GetError(), __FILE__, __LINE__)
#ifdef _MSC_VER
#define strcasecmp _stricmp
#define strncasecmp _strnicmp
#endif

Loading…
Cancel
Save