From 4883dd7ab5b00eecab25666ba0a73e048a4a024f Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Tue, 14 Jun 2016 22:36:19 +0300
Subject: Fix compilation with old compilers and without C++11 flags.

---
 src/net/ea/chatrecv.h  | 2 ++
 src/net/ea/traderecv.h | 8 ++++++++
 2 files changed, 10 insertions(+)

(limited to 'src')

diff --git a/src/net/ea/chatrecv.h b/src/net/ea/chatrecv.h
index 07efc1e99..374d6c12a 100644
--- a/src/net/ea/chatrecv.h
+++ b/src/net/ea/chatrecv.h
@@ -27,6 +27,8 @@
 #if defined(__APPLE__)
 #include <tr1/cstdint>
 #endif  // defined(__APPLE__)
+#else  // defined(__GXX_EXPERIMENTAL_CXX0X__)
+#include <stdint.h>
 #endif  // defined(__GXX_EXPERIMENTAL_CXX0X__)
 
 #include <string>
diff --git a/src/net/ea/traderecv.h b/src/net/ea/traderecv.h
index c4ded8aa7..a1f7976fb 100644
--- a/src/net/ea/traderecv.h
+++ b/src/net/ea/traderecv.h
@@ -23,6 +23,14 @@
 #ifndef NET_EA_TRADERECV_H
 #define NET_EA_TRADERECV_H
 
+#if defined(__GXX_EXPERIMENTAL_CXX0X__)
+#if defined(__APPLE__)
+#include <tr1/cstdint>
+#endif  // defined(__APPLE__)
+#else  // defined(__GXX_EXPERIMENTAL_CXX0X__)
+#include <stdint.h>
+#endif  // defined(__GXX_EXPERIMENTAL_CXX0X__)
+
 #include <string>
 
 namespace Net
-- 
cgit v1.2.3-70-g09d2