Browse Source

Merge pull request #884 from careles/mingw_win64-WIN32_LEAN_AND_MEAN-redefined

fix macro WIN32_LEAN_AND_MEAN redefined
pull/890/head
Eric Hawicz GitHub 8 months ago
parent
commit
7bca694b47
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      json_util.c
  2. +2
    -0
      linkhash.c

+ 2
- 0
json_util.c View File

@@ -38,7 +38,9 @@
#endif /* HAVE_UNISTD_H */

#ifdef _WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <io.h>
#include <windows.h>
#endif /* defined(_WIN32) */


+ 2
- 0
linkhash.c View File

@@ -25,7 +25,9 @@
#endif

#if defined(_MSC_VER) || defined(__MINGW32__)
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h> /* Get InterlockedCompareExchange */
#endif



Loading…
Cancel
Save