File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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))
You can’t perform that action at this time.
0 commit comments