]>
git.saurik.com Git - wxWidgets.git/blob - src/iodbc/dlf.h
   6  *  Dynamic Library Loader (mapping to SVR4) 
   8  *  The iODBC driver manager. 
  10  *  Copyright (C) 1995 by Ke Jin <kejin@empress.com>  
  12  *  This library is free software; you can redistribute it and/or 
  13  *  modify it under the terms of the GNU Library General Public 
  14  *  License as published by the Free Software Foundation; either 
  15  *  version 2 of the License, or (at your option) any later version. 
  17  *  This library is distributed in the hope that it will be useful, 
  18  *  but WITHOUT ANY WARRANTY; without even the implied warranty of 
  19  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
  20  *  Library General Public License for more details. 
  22  *  You should have received a copy of the GNU Library General Public 
  23  *  License along with this library; if not, write to the Free 
  24  *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
  30 #if defined(HAVE_LIBDL) 
  31 #define DLDAPI_SVR4_DLFCN 
  32 #elif defined(HAVE_SHL_LOAD) 
  36 #ifdef DLDAPI_SVR4_DLFCN 
  41 extern void FAR 
*dlopen (char FAR 
* path
, int mode
); 
  42 extern void FAR 
*dlsym (void FAR 
* hdll
, char FAR 
* sym
); 
  43 extern char FAR 
*dlerror (); 
  44 extern int dlclose (void FAR 
* hdll
); 
  51 #define DLL_OPEN(dll)           (void*)dlopen((char*)(path), RTLD_LAZY) 
  52 #define DLL_PROC(hdll, sym)     (void*)dlsym((void*)(hdll), (char*)sym) 
  53 #define DLL_ERROR()             (char*)dlerror() 
  54 #define DLL_CLOSE(hdll)         dlclose((void*)(hdll))