libtranscript
|
00001 /* Copyright (C) 2011 G.P. Halkes 00002 This program is free software: you can redistribute it and/or modify 00003 it under the terms of the GNU General Public License version 3, as 00004 published by the Free Software Foundation. 00005 00006 This program is distributed in the hope that it will be useful, 00007 but WITHOUT ANY WARRANTY; without even the implied warranty of 00008 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00009 GNU General Public License for more details. 00010 00011 You should have received a copy of the GNU General Public License 00012 along with this program. If not, see <http://www.gnu.org/licenses/>. 00013 */ 00014 #ifndef TRANSCRIPT_DLFCN_H 00015 #define TRANSCRIPT_DLFCN_H 00016 00017 #ifdef HAS_DLFCN 00018 #include <dlfcn.h> 00019 typedef void *lt_dlhandle; 00020 #ifdef _WIN32 00021 #define LT_PATHSEP_CHAR ';' 00022 #else 00023 #define LT_PATHSEP_CHAR ':' 00024 #endif 00025 #define lt_dlinit() 0 00026 #define lt_dlexit() 00027 #define lt_dlopen(name) dlopen(name, RTLD_NOW | RTLD_LOCAL) 00028 #define lt_dlsym dlsym 00029 #define lt_dlclose dlclose 00030 #define lt_dlerror dlerror 00031 #else 00032 #include <ltdl.h> 00033 #endif 00034 00035 #endif