mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
Only define __STDC_LIMIT_MACROS if not already defined.
This commit is contained in:
parent
f891cc9415
commit
25a9a1f62b
1 changed files with 6 additions and 2 deletions
|
@ -18,7 +18,13 @@
|
||||||
#endif
|
#endif
|
||||||
#define _WIN32_IE 0x0400
|
#define _WIN32_IE 0x0400
|
||||||
#define WIN32_LEAN_AND_MEAN 1
|
#define WIN32_LEAN_AND_MEAN 1
|
||||||
|
|
||||||
|
// Include boost/foreach here as it defines __STDC_LIMIT_MACROS on some systems.
|
||||||
|
#include <boost/foreach.hpp>
|
||||||
|
#ifndef __STDC_LIMIT_MACROS
|
||||||
#define __STDC_LIMIT_MACROS // to enable UINT64_MAX from stdint.h
|
#define __STDC_LIMIT_MACROS // to enable UINT64_MAX from stdint.h
|
||||||
|
#endif
|
||||||
|
|
||||||
#if (defined(__unix__) || defined(unix)) && !defined(USG)
|
#if (defined(__unix__) || defined(unix)) && !defined(USG)
|
||||||
#include <sys/param.h> // to get BSD define
|
#include <sys/param.h> // to get BSD define
|
||||||
#endif
|
#endif
|
||||||
|
@ -49,8 +55,6 @@
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#include <boost/foreach.hpp>
|
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
|
|
Loading…
Add table
Reference in a new issue