diff --git a/src/csfml_window.nim b/src/csfml_window.nim index 7508223..b415c3c 100644 --- a/src/csfml_window.nim +++ b/src/csfml_window.nim @@ -24,7 +24,7 @@ include private/csfml_common import csfml_system -when defined(windows) or defined(mac): +when defined(windows) or defined(macosx): type WindowHandle* = pointer else: type WindowHandle* = culong diff --git a/src/private/csfml_common.nim b/src/private/csfml_common.nim index 4667a07..7a855ec 100644 --- a/src/private/csfml_common.nim +++ b/src/private/csfml_common.nim @@ -30,7 +30,7 @@ else: when defined(windows): const lib = "csfml-" & module & "-2.dll" -elif defined(mac): +elif defined(macosx): const lib = "libcsfml-" & module & ".dylib" else: const lib = "libcsfml-" & module & ".so"