From d21442941c321f47442c428c0ba89e0d0d53850f Mon Sep 17 00:00:00 2001 From: Joe Stringer Date: Mon, 15 Feb 2021 18:05:26 -0800 Subject: [PATCH] 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 --- src/stdafx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stdafx.h b/src/stdafx.h index fe2dc8f61207..33cf2b05b160 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