diff --git a/src/subhook.nim b/src/subhook.nim index 801ed1c..5c04a0d 100644 --- a/src/subhook.nim +++ b/src/subhook.nim @@ -1,5 +1,4 @@ {.compile: "private/subhook/subhook.c".} -{.passL: "-DSUBHOOK_STATIC".} {.pragma: subhook, cdecl, diff --git a/src/subhook.nims b/src/subhook.nims new file mode 100644 index 0000000..8b93521 --- /dev/null +++ b/src/subhook.nims @@ -0,0 +1,5 @@ + +#when defined(windows): +# switch("passC", "-DSUBHOOK_WINDOWS") + +switch("passC", "-DSUBHOOK_STATIC")