]> git.saurik.com Git - wxWidgets.git/blob - src/iodbc/dlf.h
DP: framecmn.o & wincmn.o were duplicated...
[wxWidgets.git] / src / iodbc / dlf.h
1 #ifndef _DLF_H
2 # define _DLF_H
3
4 #define DLDAPI_SVR4_DLFCN
5
6 #ifdef __HPUX__
7 #define DLDAPI_HP_SHL
8 #endif
9
10 #ifdef __AIX__
11 #define DLDAPI_AIX_LOAD
12 #endif
13
14 # include <../iodbc/config.h>
15 # include <../iodbc/windows.h>
16
17 # ifdef DLDAPI_SVR4_DLFCN
18 # include <dlfcn.h>
19 # else
20 extern void FAR* dlopen(char FAR* path, int mode);
21 extern void FAR* dlsym(void FAR* hdll, char FAR* sym);
22 extern char FAR* dlerror();
23 extern int dlclose(void FAR* hdll);
24 # endif
25
26 # ifndef RTLD_LAZY
27 # define RTLD_LAZY 1
28 # endif
29
30 # define DLL_OPEN(dll) (void*)dlopen((char*)(path), RTLD_LAZY)
31 # define DLL_PROC(hdll, sym) (void*)dlsym((void*)(hdll), (char*)sym)
32 # define DLL_ERROR() (char*)dlerror()
33 # define DLL_CLOSE(hdll) dlclose((void*)(hdll))
34
35 #endif