From: Richard Kenner Date: Wed, 2 Jul 1997 10:38:04 +0000 (-0400) Subject: (_trampoline): Add stdcall attribute to VirtualProtect on i386. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4b151062ffd441c0b56b97bbf3b9fefa1a8f8bd;p=gcc.git (_trampoline): Add stdcall attribute to VirtualProtect on i386. From-SVN: r14371 --- diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index f2532a34746..adda3257f7e 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -2729,6 +2729,10 @@ long getpagesize() #endif } +#ifdef i386 +extern int VirtualProtect (char *, int, int, int *) __attribute__((stdcall)); +#endif + int mprotect(char *addr, int len, int prot) { int np, op;