Skip to content

Commit

Permalink
Fix: [Cygwin] Fix missing uint definition
Browse files Browse the repository at this point in the history
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
  • Loading branch information
joestringer committed Feb 16, 2021
1 parent db246b8 commit c7879b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stdafx.h
Expand Up @@ -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

Expand Down

0 comments on commit c7879b8

Please sign in to comment.