diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-01-29 14:27:27 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-01-29 14:27:27 +0100 |
commit | 61379d97cd3f4f21cc55d3cf3539e0adfa274b7f (patch) | |
tree | 6bf9ab10ca4e42e0786fae7f1f7f15bf39a9a5c3 /source4/scripting | |
parent | bcad73a7f7f63b33c02df5a62c7986f2c7dc11ff (diff) | |
download | samba-61379d97cd3f4f21cc55d3cf3539e0adfa274b7f.tar.gz samba-61379d97cd3f4f21cc55d3cf3539e0adfa274b7f.tar.bz2 samba-61379d97cd3f4f21cc55d3cf3539e0adfa274b7f.zip |
python: Provide PyAPI_DATA macro for older versions of Python (< 2.3).
(This used to be commit 421bdd203eab09e560f4919715fa4cc4497e406f)
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/pyrpc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/scripting/python/pyrpc.h b/source4/scripting/python/pyrpc.h index 5390c6923d..3a5d235cfc 100644 --- a/source4/scripting/python/pyrpc.h +++ b/source4/scripting/python/pyrpc.h @@ -27,3 +27,8 @@ #define dom_sid28_Type dom_sid_Type #define dom_sid2_Check dom_sid_Check #define dom_sid28_Check dom_sid28_Check + +/* This macro is only provided by Python >= 2.3 */ +#ifndef PyAPI_DATA +# define PyAPI_DATA(RTYPE) extern RTYPE +#endif |