Better support for __declspec() (based on a suggestion from Ove

Kaaven).
This commit is contained in:
Dimitrie O. Paun 2003-08-07 20:11:24 +00:00 committed by Alexandre Julliard
parent e7fe5bc1d3
commit a2f937f7f5
1 changed files with 13 additions and 1 deletions

View File

@ -294,7 +294,19 @@ int main(int argc, char **argv)
gcc_argv[i++] = "-D_stdcall=__attribute__((__stdcall__))";
gcc_argv[i++] = "-D_cdecl=__attribute__((__cdecl__))";
gcc_argv[i++] = "-D_fastcall=__attribute__((__fastcall__))";
gcc_argv[i++] = "-D__declspec(x)=__attribute__((x))";
gcc_argv[i++] = "-D__declspec(x)=__declspec_##x";
gcc_argv[i++] = "-D__declspec_align(x)=__attribute__((aligned(x)))";
gcc_argv[i++] = "-D__declspec_allocate(x)=__attribute__((section(x)))";
gcc_argv[i++] = "-D__declspec_deprecated=__attribute__((deprecated))";
gcc_argv[i++] = "-D__declspec_dllimport=__attribute__((dllimport))";
gcc_argv[i++] = "-D__declspec_dllexport=__attribute__((dllexport))";
gcc_argv[i++] = "-D__declspec_naked=__attribute__((naked))";
gcc_argv[i++] = "-D__declspec_noinline=__attribute__((noinline))";
gcc_argv[i++] = "-D__declspec_noreturn=__attribute__((noreturn))";
gcc_argv[i++] = "-D__declspec_nothrow=__attribute__((nothrow))";
gcc_argv[i++] = "-D__declspec_novtable=__attribute__(())"; /* ignore it */
gcc_argv[i++] = "-D__declspec_selectany=__attribute__((weak))";
gcc_argv[i++] = "-D__declspec_thread=__thread";
/* Wine specific defines */
gcc_argv[i++] = "-D__WINE__";