~ubuntu-branches/ubuntu/maverick/python3.1/maverick

« back to all changes in this revision

Viewing changes to Modules/_ctypes/ctypes_dlfcn.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-03-23 00:01:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090323000127-5fstfxju4ufrhthq
Tags: upstream-3.1~a1+20090322
ImportĀ upstreamĀ versionĀ 3.1~a1+20090322

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*****************************************************************
 
2
  This file should be kept compatible with Python 2.3, see PEP 291.
 
3
 *****************************************************************/
 
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_ */