summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-11-04 23:51:03 +0300
committerAndrei Karas <akaras@inbox.ru>2016-11-04 23:51:03 +0300
commita634b3c1ca521c79f5f1d5412e68c73e18a39526 (patch)
tree2ce2d61c028b1d230780505fe1a05ad2d430efd8 /src/net/eathena
parent165eef78d8860585fcde8f1e7b128723c240777d (diff)
downloadplus-a634b3c1ca521c79f5f1d5412e68c73e18a39526.tar.gz
plus-a634b3c1ca521c79f5f1d5412e68c73e18a39526.tar.bz2
plus-a634b3c1ca521c79f5f1d5412e68c73e18a39526.tar.xz
plus-a634b3c1ca521c79f5f1d5412e68c73e18a39526.zip
Fix some defines/includes, because in some systems it may works wrong.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/messagein.cpp6
-rw-r--r--src/net/eathena/messageout.cpp2
2 files changed, 3 insertions, 5 deletions
diff --git a/src/net/eathena/messagein.cpp b/src/net/eathena/messagein.cpp
index b32db3060..7cc1bd3a3 100644
--- a/src/net/eathena/messagein.cpp
+++ b/src/net/eathena/messagein.cpp
@@ -29,14 +29,12 @@
#include "utils/stringutils.h"
+#ifndef SDL_BIG_ENDIAN
#include <SDL_endian.h>
+#endif // SDL_BYTEORDER
#include "debug.h"
-#ifndef SDL_BYTEORDER
-#error missing SDL_endian.h
-#endif // SDL_BYTEORDER
-
namespace EAthena
{
diff --git a/src/net/eathena/messageout.cpp b/src/net/eathena/messageout.cpp
index 6cbcba027..66585cc58 100644
--- a/src/net/eathena/messageout.cpp
+++ b/src/net/eathena/messageout.cpp
@@ -30,7 +30,7 @@
#include "debug.h"
-#ifndef SDL_BYTEORDER
+#ifndef SDL_BIG_ENDIAN
#error missing SDL_endian.h
#endif // SDL_BYTEORDER