From 7734507190d4bf6ff134e6afff9794a7be1d20dd Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 12 May 2010 13:04:22 +0200 Subject: [PATCH] Fixed: #871 Shared Libs loading on Mac OS X (patch provided by rti) --- code/nel/src/misc/dynloadlib.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/nel/src/misc/dynloadlib.cpp b/code/nel/src/misc/dynloadlib.cpp index c561f9325..705f4b4b3 100644 --- a/code/nel/src/misc/dynloadlib.cpp +++ b/code/nel/src/misc/dynloadlib.cpp @@ -67,6 +67,9 @@ void *nlGetSymbolAddress(NL_LIB_HANDLE libHandle, const std::string &procName) #ifdef NL_OS_WINDOWS const string nlLibPrefix; // empty const string nlLibExt(".dll"); +#elif defined(NL_OS_MAC) + const string nlLibPrefix("lib"); + const string nlLibExt(".dylib"); #elif defined(NL_OS_UNIX) const string nlLibPrefix("lib"); const string nlLibExt(".so");