summaryrefslogtreecommitdiff
path: root/source4/scripting/python/pyrpc.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-01-31 09:49:15 +1100
committerAndrew Tridgell <tridge@samba.org>2008-01-31 09:49:15 +1100
commit8398982ac998d98cb1184f2b6d2631f1cfc9b3f8 (patch)
treed930f888211ce6f1353b4b41f2b1563957933e2b /source4/scripting/python/pyrpc.h
parent3a3ff8ebe7b7de24a7d3e2c9dd105d9fbeeb5d42 (diff)
parent1c22c925e5a7f45fbcbf9c2f8e206ee6b2b12192 (diff)
downloadsamba-8398982ac998d98cb1184f2b6d2631f1cfc9b3f8.tar.gz
samba-8398982ac998d98cb1184f2b6d2631f1cfc9b3f8.tar.bz2
samba-8398982ac998d98cb1184f2b6d2631f1cfc9b3f8.zip
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit f6a5848e5e211d4d4d66b7eca46b4b0ad4c9daab)
Diffstat (limited to 'source4/scripting/python/pyrpc.h')
-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