summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FreeImage.nim3
-rw-r--r--nim-freeimage.babel2
2 files changed, 4 insertions, 1 deletions
diff --git a/FreeImage.nim b/FreeImage.nim
index 2067fbe..d2e6307 100644
--- a/FreeImage.nim
+++ b/FreeImage.nim
@@ -28,6 +28,9 @@
when defined(windows):
const FreeImageLib = "freeimage.dll"
{.pragma: FreeImageCallconv, stdcall.}
+when defined(macosx):
+ const FreeImageLib = "libfreeimage.dylib"
+ {.pragma: FreeImageCallconv, cdecl.}
else:
const FreeImageLib = "libfreeimage.so"
{.pragma: FreeImageCallconv, cdecl.}
diff --git a/nim-freeimage.babel b/nim-freeimage.babel
index c9e9a50..ae41213 100644
--- a/nim-freeimage.babel
+++ b/nim-freeimage.babel
@@ -6,5 +6,5 @@ description = """wrapper for the FreeImage library for reading and writing image
license = "MIT"
InstallFiles = """
FreeImage_License.txt
-FreeImage.nim
+freeimage.nim
"""