Skip to content

Commit

Permalink
PCH: fix error with _C and _U macros on CYGWIN
Browse files Browse the repository at this point in the history
I'm getting an error on CYGWIN because the files into PCH defines some macros called _C and _U, but they already exist into ctype.h.
Here I fixed it by using the same hack made for Apple.
  • Loading branch information
carlo-bramini authored and eranif committed Jan 7, 2022
1 parent 5dcfe5e commit 43472ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PCH/precompiled_header_dbg.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
// 3. To convert literal strings, use _T()
/////////////////////////////////////////////////////////////////////////////

#ifdef __APPLE__
#if defined(__APPLE__) || defined(__CYGWIN__)
#include <ctype.h>
#undef _C /* _CTYPE_C */
#undef _U /* _CTYPE_U */
Expand Down
2 changes: 1 addition & 1 deletion PCH/precompiled_header_release.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
// 3. To convert literal strings, use _T()
/////////////////////////////////////////////////////////////////////////////

#ifdef __APPLE__
#if defined(__APPLE__) || defined(__CYGWIN__)
#include <ctype.h>
#undef _C /* _CTYPE_C */
#undef _U /* _CTYPE_U */
Expand Down
2 changes: 1 addition & 1 deletion PCH/precompiled_header_release_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
// 3. To convert literal strings, use _T()
/////////////////////////////////////////////////////////////////////////////

#ifdef __APPLE__
#if defined(__APPLE__) || defined(__CYGWIN__)
#include <ctype.h>
#undef _C /* _CTYPE_C */
#undef _U /* _CTYPE_U */
Expand Down

0 comments on commit 43472ed

Please sign in to comment.