X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Flib%2F3rdparty%2Fmingw%2Fcrt1.c;h=4f6b17c193eb217f0002dedabd3e059a26e02afa;hp=a4fb015d1e45f0427d1e8c9bd5fdf84cee32f6e5;hb=b4787f49df672ea432f67a628ee3dee1a0bf9621;hpb=ae7da04787edb6c11bc1e6acca3b661114d6abcf diff --git a/reactos/lib/3rdparty/mingw/crt1.c b/reactos/lib/3rdparty/mingw/crt1.c index a4fb015d1e4..4f6b17c193e 100644 --- a/reactos/lib/3rdparty/mingw/crt1.c +++ b/reactos/lib/3rdparty/mingw/crt1.c @@ -220,6 +220,7 @@ __mingw_CRTStartup (void) _pei386_runtime_relocator (); #endif +#if defined(__GNUC__) #if defined(__i386__) /* Align the stack to 16 bytes for the sake of SSE ops in main or in functions inlined into main. */ @@ -232,6 +233,17 @@ __mingw_CRTStartup (void) asm __volatile__ ("li 0,15\n\tandc 1,1,0" : : : "r1"); #else #error Unsupported architecture +#endif +#elif defined(_MSC_VER) +#if defined(_M_IX86) + /* Align the stack to 16 bytes for the sake of SSE ops in main + or in functions inlined into main. */ + __asm and esp, 0FFFFFFF0h +#else +#error TODO +#endif +#else +#error TODO #endif /*