summaryrefslogtreecommitdiff
path: root/gcc/config/i386/cygwin32.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/i386/cygwin32.h')
-rw-r--r--gcc/config/i386/cygwin32.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/i386/cygwin32.h b/gcc/config/i386/cygwin32.h
index 864ff95ff5b..56064bee9fd 100644
--- a/gcc/config/i386/cygwin32.h
+++ b/gcc/config/i386/cygwin32.h
@@ -41,6 +41,9 @@ Boston, MA 02111-1307, USA. */
-D__cdecl=__attribute__((__cdecl__)) \
-Asystem(winnt) -Acpu(i386) -Amachine(i386)"
+#undef CPP_SPEC
+#define CPP_SPEC "-remap %(cpp_cpu) %[cpp_cpu] %{posix:-D_POSIX_SOURCE}"
+
/* We have to dynamic link to get to the system DLLs. All of libc, libm and
the Unix stuff is in cygwin.dll. The import library is called
'libcygwin.a'. For Windows applications, include more libraries, but