Conditionalize definition of __STDC_LIMIT_MACROS and define it at the top of ripple_websocket.h.

This commit is contained in:
Alex Dupre
2013-06-26 12:03:21 +02:00
parent 6407599394
commit a5167c809f
2 changed files with 7 additions and 6 deletions

View File

@@ -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>

View File

@@ -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"