From a634b3c1ca521c79f5f1d5412e68c73e18a39526 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 4 Nov 2016 23:51:03 +0300 Subject: Fix some defines/includes, because in some systems it may works wrong. --- src/net/ea/network.cpp | 2 +- src/net/eathena/messagein.cpp | 6 ++---- src/net/eathena/messageout.cpp | 2 +- src/net/tmwa/messagein.cpp | 6 ++---- src/net/tmwa/messageout.cpp | 2 +- 5 files changed, 7 insertions(+), 11 deletions(-) (limited to 'src/net') diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp index 571fa2ebb..9a9fdba98 100644 --- a/src/net/ea/network.cpp +++ b/src/net/ea/network.cpp @@ -35,7 +35,7 @@ #include "debug.h" -#ifndef SDL_BYTEORDER +#ifndef SDL_BIG_ENDIAN #error missing SDL_endian.h #endif // SDL_BYTEORDER 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 +#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 diff --git a/src/net/tmwa/messagein.cpp b/src/net/tmwa/messagein.cpp index 219466187..43c5b882f 100644 --- a/src/net/tmwa/messagein.cpp +++ b/src/net/tmwa/messagein.cpp @@ -29,14 +29,12 @@ #include "utils/stringutils.h" +#ifndef SDL_BIG_ENDIAN #include +#endif // SDL_BYTEORDER #include "debug.h" -#ifndef SDL_BYTEORDER -#error missing SDL_endian.h -#endif // SDL_BYTEORDER - namespace TmwAthena { diff --git a/src/net/tmwa/messageout.cpp b/src/net/tmwa/messageout.cpp index e0e7ffdb2..cc24d9f0d 100644 --- a/src/net/tmwa/messageout.cpp +++ b/src/net/tmwa/messageout.cpp @@ -30,7 +30,7 @@ #include "debug.h" -#ifndef SDL_BYTEORDER +#ifndef SDL_BIG_ENDIAN #error missing SDL_endian.h #endif // SDL_BYTEORDER -- cgit v1.2.3-60-g2f50