Changeset 7575
- Timestamp:
- Oct 21, 2010, 11:16:39 PM (14 years ago)
- Location:
- code/branches/ois_update/src/libraries/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ois_update/src/libraries/core/DynLib.cc
r7513 r7575 143 143 } 144 144 145 #if defined(ORXONOX_PLATFORM_APPLE) 146 /*static*/ void* DynLib::mac_loadDylib(const char* name) 147 { 148 std::string fullPath=name; 149 if(name[0]!='/') 150 fullPath = macPluginPath()+"/"+fullPath; 151 152 return dlopen(fullPath.c_str(), RTLD_LAZY | RTLD_GLOBAL); 153 } 154 #endif 145 155 } -
code/branches/ois_update/src/libraries/core/DynLib.h
r7513 r7575 60 60 #elif defined(ORXONOX_PLATFORM_APPLE) 61 61 # define DYNLIB_HANDLE void* 62 # define DYNLIB_LOAD( a ) Ogre::mac_loadDylib( a )62 # define DYNLIB_LOAD( a ) DynLib::mac_loadDylib( a ) 63 63 # define DYNLIB_GETSYM( a, b ) dlsym( a, b ) 64 64 # define DYNLIB_UNLOAD( a ) dlclose( a ) … … 117 117 protected: 118 118 119 #elif defined(ORXONOX_PLATFORM_APPLE) 120 // From macUtils.h in OGRE 121 static void* mac_loadDylib(const char* name); 122 #endif 123 119 124 /// Handle to the loaded library. 120 125 DYNLIB_HANDLE m_hInst;
Note: See TracChangeset
for help on using the changeset viewer.