]> git.saurik.com Git - wxWidgets.git/blob - src/iodbc/dlf.h
OnExit() is called for modules which were initialized even if the init of
[wxWidgets.git] / src / iodbc / dlf.h
1 #ifndef _DLF_H
2 # define _DLF_H
3
4 #define DLDAPI_SVR4_DLFCN
5
6 # ifdef DLDAPI_SVR4_DLFCN
7 # include <dlfcn.h>
8 # else
9 extern void FAR* dlopen(char FAR* path, int mode);
10 extern void FAR* dlsym(void FAR* hdll, char FAR* sym);
11 extern char FAR* dlerror();
12 extern int dlclose(void FAR* hdll);
13 # endif
14
15 # ifndef RTLD_LAZY
16 # define RTLD_LAZY 1
17 # endif
18
19 # define DLL_OPEN(dll) (void*)dlopen((char*)(path), RTLD_LAZY)
20 # define DLL_PROC(hdll, sym) (void*)dlsym((void*)(hdll), (char*)sym)
21 # define DLL_ERROR() (char*)dlerror()
22 # define DLL_CLOSE(hdll) dlclose((void*)(hdll))
23
24 #endif