libgcc2.c (L_trampoline): Include windows.h for mingw targets.
authorKai Tietz <ktietz@redhat.com>
Thu, 9 Jun 2011 21:10:25 +0000 (23:10 +0200)
committerKai Tietz <ktietz@gcc.gnu.org>
Thu, 9 Jun 2011 21:10:25 +0000 (23:10 +0200)
2011-06-09  Kai Tietz  <ktietz@redhat.com>

        * libgcc2.c (L_trampoline): Include windows.h for mingw targets.

From-SVN: r174860

gcc/ChangeLog
gcc/libgcc2.c

index c1c12eac28b66734e2ff092a26366a8373341008..aa9a4ec8dd86d5c92425ea902e13b6e7771a8d48 100644 (file)
@@ -1,3 +1,7 @@
+2011-06-09  Kai Tietz  <ktietz@redhat.com>
+
+       * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
+
 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
 
        * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
index 94763d658f419b68d0269b2c6a949ca213b352c5..fbf5dcc2155b9844c4c882b779b465f204566c24 100644 (file)
@@ -2032,6 +2032,7 @@ __clear_cache (char *beg __attribute__((__unused__)),
 /* Jump to a trampoline, loading the static chain address.  */
 
 #if defined(WINNT) && ! defined(__CYGWIN__)
+#include <windows.h>
 int getpagesize (void);
 int mprotect (char *,int, int);