From c7879b8498b55491b650ba7439a39c07693d9f93 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdafx.h b/src/stdafx.h index fe2dc8f612076..075d2331eb942 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -307,7 +307,7 @@ typedef unsigned char byte; /* This is already defined in unix, but not in QNX Neutrino (6.x)*/ -#if (!defined(UNIX) && !defined(__HAIKU__)) || defined(__QNXNTO__) +#if (!defined(UNIX) && !defined(__HAIKU__)) || defined(__QNXNTO__) || defined(__CYGWIN__) typedef unsigned int uint; #endif