Skip to content

Commit

Permalink
Merge pull request #81 from rouault/WIN32
Browse files Browse the repository at this point in the history
Only test for _WIN32 for Windows detection
  • Loading branch information
rouault authored Jan 10, 2024
2 parents 2ca8108 + 02a1c0d commit b15b22a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dbfopen.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#if defined(_MSC_VER)
#define STRCASECMP(a, b) (_stricmp(a, b))
#elif defined(WIN32) || defined(_WIN32)
#elif defined(_WIN32)
#define STRCASECMP(a, b) (stricmp(a, b))
#else
#include <strings.h>
Expand All @@ -37,7 +37,7 @@
#if _MSC_VER < 1900
#define snprintf _snprintf
#endif
#elif defined(WIN32) || defined(_WIN32)
#elif defined(_WIN32)
#ifndef snprintf
#define snprintf _snprintf
#endif
Expand Down
2 changes: 1 addition & 1 deletion sbnsearch.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#if _MSC_VER < 1900
#define snprintf _snprintf
#endif
#elif defined(WIN32) || defined(_WIN32)
#elif defined(_WIN32)
#ifndef snprintf
#define snprintf _snprintf
#endif
Expand Down
2 changes: 1 addition & 1 deletion shapefil.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ extern "C"
/* On some platforms, additional file IO hooks are defined that */
/* UTF-8 encoded filenames Unicode filenames */
/* -------------------------------------------------------------------- */
#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
#if defined(_WIN32)
#define SHPAPI_WINDOWS
#define SHPAPI_UTF8_HOOKS
#endif
Expand Down
2 changes: 1 addition & 1 deletion shpopen.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#if _MSC_VER < 1900
#define snprintf _snprintf
#endif
#elif defined(WIN32) || defined(_WIN32)
#elif defined(_WIN32)
#ifndef snprintf
#define snprintf _snprintf
#endif
Expand Down

0 comments on commit b15b22a

Please sign in to comment.