Skip to content

Commit d2a3334

Browse files
Blackhexgithub-actions
authored andcommitted
0011-Cygwin-define-STD_UNIX.patch
1 parent 23dc3d6 commit d2a3334

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

gcc/config/i386/cygwin.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,12 @@ along with GCC; see the file COPYING3. If not see
2424
builtin_define ("__CYGWIN__"); \
2525
if (!TARGET_64BIT) \
2626
builtin_define ("__CYGWIN32__"); \
27-
builtin_define ("__unix__"); \
28-
builtin_define ("__unix"); \
27+
builtin_define_std ("unix"); \
2928
} \
3029
while (0)
3130

3231
#undef CPP_SPEC
3332
#define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE} \
34-
%{!ansi:-Dunix} \
3533
%{pthread:-D_REENTRANT} \
3634
%{mwin32:-DWIN32 -D_WIN32 -D__WIN32 -D__WIN32__ %{!ansi:-DWINNT}} \
3735
%{!nostdinc:%{!mno-win32:-idirafter ../include/w32api%s -idirafter ../../include/w32api%s}}\

0 commit comments

Comments
 (0)