Skip to content

Commit 853c1ff

Browse files
committed
just use "#if defined(_MSC_VER) && !defined(__clang__)"
1 parent 547b5c4 commit 853c1ff

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Modules/_sre/sre.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,8 @@ static unsigned int sre_toupper(unsigned int ch) {
9191

9292
/* -------------------------------------------------------------------- */
9393

94-
#if defined(_MSC_VER)
95-
# if defined(__clang__)
96-
# pragma optimize("", on)
97-
# else
98-
# pragma optimize("gt", on) /* doesn't seem to make much difference... */
99-
# endif
94+
#if defined(_MSC_VER) && !defined(__clang__)
95+
#pragma optimize("agtw", on) /* doesn't seem to make much difference... */
10096
#pragma warning(disable: 4710) /* who cares if functions are not inlined ;-) */
10197
/* fastest possible local call under MSVC */
10298
#define LOCAL(type) static __inline type __fastcall

0 commit comments

Comments
 (0)