File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
regression/ansi-c/sizeof1 Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,20 @@ STATIC_ASSERT(sizeof(void *)==sizeof(size_t));
1212
1313#ifdef _WIN32
1414
15- #ifdef _WIN64
15+ # ifdef _WIN64
1616
1717STATIC_ASSERT (sizeof (void * )== 8 );
1818STATIC_ASSERT (sizeof (int )== 4 );
1919STATIC_ASSERT (sizeof (long int )== 4 );
2020STATIC_ASSERT (sizeof (long long int )== 8 );
2121STATIC_ASSERT (sizeof (wchar_t )== 2 );
22+ # ifdef __MINGW64__
23+ STATIC_ASSERT (sizeof (long double ) == 16 );
24+ # else
2225STATIC_ASSERT (sizeof (long double )== 8 );
26+ # endif
2327
24- #else
28+ # else
2529
2630STATIC_ASSERT (sizeof (void * )== 4 );
2731STATIC_ASSERT (sizeof (int )== 4 );
@@ -30,7 +34,7 @@ STATIC_ASSERT(sizeof(long long int)==8);
3034STATIC_ASSERT (sizeof (wchar_t )== 2 );
3135STATIC_ASSERT (sizeof (long double )== 8 );
3236
33- #endif
37+ # endif
3438
3539#else
3640
Original file line number Diff line number Diff line change @@ -993,7 +993,7 @@ bool configt::set(const cmdlinet &cmdline)
993993
994994 // long double is the same as double in Visual Studio,
995995 // but it's 16 bytes with GCC with the 64-bit target.
996- if (arch== " x64_64 " && cmdline.isset (" gcc" ))
996+ if (arch == " x86_64 " && cmdline.isset (" gcc" ))
997997 ansi_c.long_double_width =16 *8 ;
998998 else
999999 ansi_c.long_double_width =8 *8 ;
You can’t perform that action at this time.
0 commit comments