summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-01-29 14:27:27 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-01-29 14:27:27 +0100
commit61379d97cd3f4f21cc55d3cf3539e0adfa274b7f (patch)
tree6bf9ab10ca4e42e0786fae7f1f7f15bf39a9a5c3
parentbcad73a7f7f63b33c02df5a62c7986f2c7dc11ff (diff)
downloadsamba-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)
-rw-r--r--source4/scripting/python/pyrpc.h5
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