aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2014-06-23 14:50:00 +0200
committersfan5 <sfan5@live.de>2014-06-23 14:50:00 +0200
commit5fb8778e28beb256513a5c8c20a803066c625c76 (patch)
tree11e4c35172a2945a754e065e1020c18f3db2b938
parentf6fc39e69a0a621480bec9ceafd154ec83cf0100 (diff)
downloadminetest-5fb8778e28beb256513a5c8c20a803066c625c76.tar.gz
minetest-5fb8778e28beb256513a5c8c20a803066c625c76.tar.bz2
minetest-5fb8778e28beb256513a5c8c20a803066c625c76.zip
Fix Windows build
-rw-r--r--src/cguittfont/irrUString.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cguittfont/irrUString.h b/src/cguittfont/irrUString.h
index 094944520..8d7a23aa4 100644
--- a/src/cguittfont/irrUString.h
+++ b/src/cguittfont/irrUString.h
@@ -41,7 +41,13 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#ifdef _WIN32
+#define __BYTE_ORDER 0
+#define __LITTLE_ENDIAN 0
+#define __BIG_ENDIAN 1
+#else
#include <endian.h>
+#endif
#ifdef USTRING_CPP0X
# include <utility>