Thomas Wouters | 0e3f591 | 2006-08-11 14:57:12 +0000 | [diff] [blame] | 1 | /***************************************************************** |
| 2 | This file should be kept compatible with Python 2.3, see PEP 291. |
| 3 | *****************************************************************/ |
Thomas Heller | d4c9320 | 2006-03-08 19:35:11 +0000 | [diff] [blame] | 4 | |
| 5 | #ifndef _CTYPES_DLFCN_H_ |
| 6 | #define _CTYPES_DLFCN_H_ |
| 7 | |
| 8 | #ifdef __cplusplus |
| 9 | extern "C" { |
| 10 | #endif /* __cplusplus */ |
| 11 | |
| 12 | #ifndef MS_WIN32 |
| 13 | |
| 14 | #include <dlfcn.h> |
| 15 | |
| 16 | #ifndef CTYPES_DARWIN_DLFCN |
| 17 | |
| 18 | #define ctypes_dlsym dlsym |
| 19 | #define ctypes_dlerror dlerror |
| 20 | #define ctypes_dlopen dlopen |
| 21 | #define ctypes_dlclose dlclose |
| 22 | #define ctypes_dladdr dladdr |
| 23 | |
| 24 | #endif /* !CTYPES_DARWIN_DLFCN */ |
| 25 | |
| 26 | #endif /* !MS_WIN32 */ |
| 27 | |
| 28 | #ifdef __cplusplus |
| 29 | } |
| 30 | #endif /* __cplusplus */ |
| 31 | #endif /* _CTYPES_DLFCN_H_ */ |