Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: f5caf2b30bfe70e5107f816c9e7f7fe3ef5299d9 authored by Larry Hastings on 25 February 2015, 12:15:33 UTC
Checking in this change LOCAL ONLY NO UPLOAD ANYWHERE
Tip revision: f5caf2b
ctypes_dlfcn.h
/*****************************************************************
  This file should be kept compatible with Python 2.3, see PEP 291.
 *****************************************************************/

#ifndef _CTYPES_DLFCN_H_
#define _CTYPES_DLFCN_H_

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#ifndef MS_WIN32

#include <dlfcn.h>

#ifndef CTYPES_DARWIN_DLFCN

#define ctypes_dlsym dlsym
#define ctypes_dlerror dlerror
#define ctypes_dlopen dlopen
#define ctypes_dlclose dlclose
#define ctypes_dladdr dladdr

#endif /* !CTYPES_DARWIN_DLFCN */

#endif /* !MS_WIN32 */

#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* _CTYPES_DLFCN_H_ */
back to top