mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Conditionalize definition of __STDC_LIMIT_MACROS and define it at the top of ripple_websocket.h.
This commit is contained in:
@@ -30,7 +30,9 @@
|
||||
#ifndef BOOST_RNG_HPP
|
||||
#define BOOST_RNG_HPP
|
||||
|
||||
#define __STDC_LIMIT_MACROS 1
|
||||
#ifndef __STDC_LIMIT_MACROS
|
||||
#define __STDC_LIMIT_MACROS
|
||||
#endif
|
||||
#include <stdint.h>
|
||||
|
||||
#include <boost/random.hpp>
|
||||
|
||||
@@ -21,6 +21,10 @@
|
||||
@deprecated
|
||||
*/
|
||||
|
||||
// needed before inclusion of stdint.h for INT32_MIN/INT32_MAX macros
|
||||
#ifndef __STDC_LIMIT_MACROS
|
||||
#define __STDC_LIMIT_MACROS
|
||||
#endif
|
||||
|
||||
// VFALCO NOTE Log dependencies have wormed their way into websocketpp,
|
||||
// which needs the ripple_basic module to compile.
|
||||
@@ -38,11 +42,6 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// VFALCO TODO This include is just to prevent a warning about
|
||||
// redefinition of __STDC_LIMIT_MACROS. Fix it right.
|
||||
//
|
||||
#include "websocket/src/rng/boost_rng.hpp"
|
||||
|
||||
#include "websocket/src/common.hpp"
|
||||
#include "websocket/src/sockets/socket_base.hpp"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user