libtranscript
 All Data Structures Functions Variables Enumerations Enumerator Modules
transcript_dlfcn.h
1 /* Copyright (C) 2011 G.P. Halkes
2  This program is free software: you can redistribute it and/or modify
3  it under the terms of the GNU General Public License version 3, as
4  published by the Free Software Foundation.
5 
6  This program is distributed in the hope that it will be useful,
7  but WITHOUT ANY WARRANTY; without even the implied warranty of
8  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9  GNU General Public License for more details.
10 
11  You should have received a copy of the GNU General Public License
12  along with this program. If not, see <http://www.gnu.org/licenses/>.
13 */
14 #ifndef TRANSCRIPT_DLFCN_H
15 #define TRANSCRIPT_DLFCN_H
16 
17 #ifdef HAS_DLFCN
18 #include <dlfcn.h>
19 typedef void *lt_dlhandle;
20 #ifdef _WIN32
21 #define LT_PATHSEP_CHAR ';'
22 #else
23 #define LT_PATHSEP_CHAR ':'
24 #endif
25 #define lt_dlinit() 0
26 #define lt_dlexit()
27 #define lt_dlopen(name) dlopen(name, RTLD_NOW | RTLD_LOCAL)
28 #define lt_dlsym dlsym
29 #define lt_dlclose dlclose
30 #define lt_dlerror dlerror
31 #else
32 #include <ltdl.h>
33 #endif
34 
35 #endif