summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
authorJoe Stringer <joe@wand.net.nz>2021-02-15 18:05:26 -0800
committerCharles Pigott <charlespigott@googlemail.com>2021-02-20 14:54:57 +0000
commitd21442941c321f47442c428c0ba89e0d0d53850f (patch)
tree0e8dea2500230e60088bd4b43a65b95c9d58d8eb /src/stdafx.h
parent08821f82b60e535b2ba95a97361a8cb4dd085e98 (diff)
downloadopenttd-d21442941c321f47442c428c0ba89e0d0d53850f.tar.xz
Fix: [Cygwin] Fix missing uint definition
In file included from src/settingsgen/../string_func.h:30, from src/settingsgen/settingsgen.cpp:11: src/settingsgen/../core/bitmath_func.hpp:34:15: error: 'uint' does not name a type; did you mean 'uint8'? 34 | static inline uint GB(const T x, const uint8 s, const uint8 n) | ^~~~ | uint8
Diffstat (limited to 'src/stdafx.h')
-rw-r--r--src/stdafx.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index fe2dc8f61..33cf2b05b 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -306,8 +306,8 @@
typedef unsigned char byte;
-/* This is already defined in unix, but not in QNX Neutrino (6.x)*/
-#if (!defined(UNIX) && !defined(__HAIKU__)) || defined(__QNXNTO__)
+/* This is already defined in unix, but not in QNX Neutrino (6.x) or Cygwin. */
+#if (!defined(UNIX) && !defined(__HAIKU__)) || defined(__QNXNTO__) || defined(__CYGWIN__)
typedef unsigned int uint;
#endif