diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-03-04 02:34:11 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-03-04 02:34:11 +0100 |
commit | 0bdb570f8949921887a103efc5c804f5b665dfde (patch) | |
tree | 2061cc79b435bb20d52e187d6e46896b926ee187 /crawl-ref/source/maps.cc | |
parent | 814bbc5ff8d5b25b707abdd9934ff2868733f2bc (diff) | |
download | crawl-ref-0bdb570f8949921887a103efc5c804f5b665dfde.tar.gz crawl-ref-0bdb570f8949921887a103efc5c804f5b665dfde.zip |
Make missing BYTE_ORDER defines fatal, rather than mis-tag files.
Also, blindly include two files that may have that define.
Diffstat (limited to 'crawl-ref/source/maps.cc')
-rw-r--r-- | crawl-ref/source/maps.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/maps.cc b/crawl-ref/source/maps.cc index 36c46c9ffc..73031b750e 100644 --- a/crawl-ref/source/maps.cc +++ b/crawl-ref/source/maps.cc @@ -10,6 +10,8 @@ #include <cstring> #include <cstdlib> #include <algorithm> +#include <sys/types.h> +#include <sys/param.h> #ifndef TARGET_COMPILER_VC #include <unistd.h> @@ -36,6 +38,9 @@ #include "tags.h" #include "terrain.h" +#ifndef BYTE_ORDER +# error BYTE_ORDER is not defined +#endif #if BYTE_ORDER == LITTLE_ENDIAN # define WORD_LEN sizeof(long) #else |