Changeset 7577
- Timestamp:
- Oct 21, 2010, 11:32:28 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
r7576 r7577 142 142 #endif 143 143 } 144 145 #ifdef ORXONOX_PLATFORM_APPLE146 /*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 #endif155 144 } -
code/branches/ois_update/src/libraries/core/DynLib.h
r7576 r7577 52 52 typedef struct HINSTANCE__* hInstance; 53 53 54 #elif defined(ORXONOX_PLATFORM_ LINUX)54 #elif defined(ORXONOX_PLATFORM_UNIX) 55 55 # define DYNLIB_HANDLE void* 56 56 # define DYNLIB_LOAD( a ) dlopen( a, RTLD_LAZY | RTLD_GLOBAL) 57 # define DYNLIB_GETSYM( a, b ) dlsym( a, b )58 # define DYNLIB_UNLOAD( a ) dlclose( a )59 60 #elif defined(ORXONOX_PLATFORM_APPLE)61 # define DYNLIB_HANDLE void*62 # define DYNLIB_LOAD( a ) DynLib::mac_loadDylib( a )63 57 # define DYNLIB_GETSYM( a, b ) dlsym( a, b ) 64 58 # define DYNLIB_UNLOAD( a ) dlclose( a ) … … 116 110 117 111 protected: 118 119 #ifdef ORXONOX_PLATFORM_APPLE120 // From macUtils.h in OGRE121 static void* mac_loadDylib(const char* name);122 #endif123 124 112 /// Handle to the loaded library. 125 113 DYNLIB_HANDLE m_hInst;
Note: See TracChangeset
for help on using the changeset viewer.