Skip to content

Commit b8b79ed

Browse files
Update pycore_debug_offsets.h
1 parent 3638cda commit b8b79ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Include/internal/pycore_debug_offsets.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extern "C" {
2323
declaration \
2424
_GENERATE_DEBUG_SECTION_LINUX(name)
2525

26-
#if defined(MS_WINDOWS)
26+
#if defined(MS_WINDOWS) && !defined(__clang__)
2727
#define _GENERATE_DEBUG_SECTION_WINDOWS(name) \
2828
_Pragma(Py_STRINGIFY(section(Py_STRINGIFY(name), read, write))) \
2929
__declspec(allocate(Py_STRINGIFY(name)))
@@ -39,7 +39,7 @@ extern "C" {
3939
#define _GENERATE_DEBUG_SECTION_APPLE(name)
4040
#endif
4141

42-
#if defined(__linux__) && (defined(__GNUC__) || (defined(__clang__) && !defined(MS_WINDOWS)))
42+
#if defined(__linux__) && (defined(__GNUC__) || defined(__clang__))
4343
#define _GENERATE_DEBUG_SECTION_LINUX(name) \
4444
__attribute__((section("." Py_STRINGIFY(name)))) \
4545
__attribute__((used))

0 commit comments

Comments
 (0)