Skip to content

Commit

Permalink
Fix Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
AJenbo committed Dec 31, 2019
1 parent f7541fb commit 71d8a00
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
5 changes: 0 additions & 5 deletions Source/diablo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 0 additions & 5 deletions SourceX/miniwin/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 71d8a00

Please sign in to comment.