Skip to content

Commit e1d6034

Browse files
committed
Fix the dotted/undotted logic
1 parent aad0427 commit e1d6034

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def build_extension(self, ext):
281281
if not enable_shared:
282282
defines.append("PYTHON_WITHOUT_ENABLE_SHARED")
283283

284-
else:
284+
if sys.platform == "win32":
285285
defines.append("WINDOWS")
286286

287287
if hasattr(sys, "abiflags"):

src/runtime/runtime.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ public class Runtime
5757
#error You must define one of PYTHON34 to PYTHON38
5858
#endif
5959

60-
#if !WINDOWS
60+
#if WINDOWS
6161
internal const string dllBase = "python3" + _minor;
62-
#else // Windows
62+
#else
6363
internal const string dllBase = "python3." + _minor;
6464
#endif
6565

0 commit comments

Comments
 (0)