diff --git a/makedef.pl b/makedef.pl index 5acb0d6c6e81..71427f83117d 100644 --- a/makedef.pl +++ b/makedef.pl @@ -175,8 +175,8 @@ BEGIN if ($define{USE_LOCALE_THREADS} && ! $define{NO_THREAD_SAFE_LOCALE}) { if ( $define{USE_POSIX_2008_LOCALE} - || ($define{WIN32} && ( $cctype !~ /\D/ - && $cctype >= 80))) + || ($define{WIN32} && ($cctype eq "GCC" || ( $cctype !~ /\D/ + && $cctype >= 80)))) { $define{USE_THREAD_SAFE_LOCALE} = 1; }