summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Barto <charlie@westquad-148080.reshall.umich.edu>2014-03-20 00:25:57 -0400
committerCharlie Barto <charlie@westquad-148080.reshall.umich.edu>2014-03-20 00:25:57 -0400
commitaf32284b656cb51546b2955fefd59cc955bfc283 (patch)
treed612617a4b8fa279914e8c72350fef48d0531fd1
parente05aaca1e683025d654db62fb5bc77781707e8e9 (diff)
downloadnim-FreeImage-af32284b656cb51546b2955fefd59cc955bfc283.tar.gz
nim-FreeImage-af32284b656cb51546b2955fefd59cc955bfc283.zip
added dylib for OSX, and made FreeImage.nim into freeimage.nim
-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
"""