summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-14 22:36:19 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-14 22:36:19 +0300
commit4883dd7ab5b00eecab25666ba0a73e048a4a024f (patch)
tree3cb6aa29022b4c33f1e9289477af6f412e6a19e1 /src
parent0a28f5ebc09ae69bdea686e14e101e5d15825404 (diff)
downloadmanaplus-4883dd7ab5b00eecab25666ba0a73e048a4a024f.tar.gz
manaplus-4883dd7ab5b00eecab25666ba0a73e048a4a024f.tar.bz2
manaplus-4883dd7ab5b00eecab25666ba0a73e048a4a024f.tar.xz
manaplus-4883dd7ab5b00eecab25666ba0a73e048a4a024f.zip
Fix compilation with old compilers and without C++11 flags.
Diffstat (limited to 'src')
-rw-r--r--src/net/ea/chatrecv.h2
-rw-r--r--src/net/ea/traderecv.h8
2 files changed, 10 insertions, 0 deletions
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