Blame wrappers/dlfcn/dlfake.h

ac584a
#ifndef _CTYPES_DLFCN_H_
ac584a
#define _CTYPES_DLFCN_H_
ac584a
ac584a
#ifndef PY_ALL_STATIC
ac584a
#error  something went wrong
ac584a
#endif
ac584a
ac584a
#include <dlfcn.h>
ac584a
ac584a
#ifdef __cplusplus
ac584a
extern "C" {
ac584a
#endif
ac584a
ac584a
void *  dlfake_dlopen(const char *, int);
ac584a
int     dlfake_dlclose(void *);
ac584a
void *  dlfake_dlsym(void *, const char *);
ac584a
char *  dlfake_dlerror(void);
ac584a
int     dlfake_dladdr(const void *, void *);
ac584a
ac584a
#define ctypes_dlopen  dlfake_dlopen
ac584a
#define ctypes_dlclose dlfake_dlclose
ac584a
#define ctypes_dlsym   dlfake_dlsym
ac584a
#define ctypes_dladdr  dlfake_dladdr
ac584a
#define ctypes_dlerror dlfake_dlerror
ac584a
ac584a
#ifdef __cplusplus
ac584a
}
ac584a
#endif
ac584a
ac584a
#endif