summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorRafael Reilova <rafael7@users.noreply.github.com>2014-11-16 21:52:24 -0500
committerCraig Robbins <kde.psych@gmail.com>2014-11-21 22:33:48 +1000
commitf7d65091f83abe1cb1a70d6823291df8accbe6ab (patch)
tree6955cb513a7d92e9db775e33e18389dfc2738667 /src/config.h
parentd406ac994b8092c5bd2dc32eda1a2eafbf95a30c (diff)
downloadminetest-f7d65091f83abe1cb1a70d6823291df8accbe6ab.tar.gz
minetest-f7d65091f83abe1cb1a70d6823291df8accbe6ab.tar.bz2
minetest-f7d65091f83abe1cb1a70d6823291df8accbe6ab.zip
serialize.h: use machine native byte swapping if available, fall-back to previous generic method if not (supported for GCC using endian.h, detection done in cmake) write/readARGB8() - just write 32-bit color in one op, instead of 4 1-byte ops cleanup: removed unneeded buffer init for some serialize-out functions use a #define for the fixed point factor in read/writeF1000()
nodemetadata.cpp, nodetimer.cpp optimzation: simpler deserialize node position method staticobject.cpp: cleanup: use util/serialize.h inlines instead of its own de/serialization serialize.cpp: minor optimization/cleanup: avoid generation of unneeded string temporary CMakeLists.txt, cmake_config.h.in: detection of endian.h config.h: added HAVE_ENDIAN_H Commits due to feedback squashed Signed-off-by: Craig Robbins <kde.psych@gmail.com>
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
index f1aef03aa..b07aa5d22 100644
--- a/src/config.h
+++ b/src/config.h
@@ -36,6 +36,8 @@
#define USE_REDIS 0
#endif
+#define HAVE_ENDIAN_H 0
+
#ifdef USE_CMAKE_CONFIG_H
#include "cmake_config.h"
#undef PROJECT_NAME
@@ -72,6 +74,8 @@
#define PRODUCT_VERSION_STRING CMAKE_PRODUCT_VERSION_STRING
#undef VERSION_EXTRA_STRING
#define VERSION_EXTRA_STRING CMAKE_VERSION_EXTRA_STRING
+ #undef HAVE_ENDIAN_H
+ #define HAVE_ENDIAN_H CMAKE_HAVE_ENDIAN_H
#endif
#ifdef __ANDROID__