Guess what: ODBC updates and build fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,35 +1,24 @@
|
||||
#ifndef _DLF_H
|
||||
#ifndef _DLF_H
|
||||
# define _DLF_H
|
||||
|
||||
#define DLDAPI_SVR4_DLFCN
|
||||
|
||||
#ifdef __HPUX__
|
||||
#define DLDAPI_HP_SHL
|
||||
#endif
|
||||
|
||||
#ifdef __AIX__
|
||||
#define DLDAPI_AIX_LOAD
|
||||
#endif
|
||||
|
||||
# include <../iodbc/config.h>
|
||||
# include <../iodbc/windows.h>
|
||||
|
||||
# ifdef DLDAPI_SVR4_DLFCN
|
||||
# include <dlfcn.h>
|
||||
# include <dlfcn.h>
|
||||
# else
|
||||
extern void FAR* dlopen(char FAR* path, int mode);
|
||||
extern void FAR* dlsym(void FAR* hdll, char FAR* sym);
|
||||
extern char FAR* dlerror();
|
||||
extern int dlclose(void FAR* hdll);
|
||||
extern void FAR* dlopen(char FAR* path, int mode);
|
||||
extern void FAR* dlsym(void FAR* hdll, char FAR* sym);
|
||||
extern char FAR* dlerror();
|
||||
extern int dlclose(void FAR* hdll);
|
||||
# endif
|
||||
|
||||
# ifndef RTLD_LAZY
|
||||
# define RTLD_LAZY 1
|
||||
# ifndef RTLD_LAZY
|
||||
# define RTLD_LAZY 1
|
||||
# endif
|
||||
|
||||
# define DLL_OPEN(dll) (void*)dlopen((char*)(path), RTLD_LAZY)
|
||||
# define DLL_PROC(hdll, sym) (void*)dlsym((void*)(hdll), (char*)sym)
|
||||
# define DLL_ERROR() (char*)dlerror()
|
||||
# define DLL_CLOSE(hdll) dlclose((void*)(hdll))
|
||||
# define DLL_OPEN(dll) (void*)dlopen((char*)(path), RTLD_LAZY)
|
||||
# define DLL_PROC(hdll, sym) (void*)dlsym((void*)(hdll), (char*)sym)
|
||||
# define DLL_ERROR() (char*)dlerror()
|
||||
# define DLL_CLOSE(hdll) dlclose((void*)(hdll))
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user