python: Provide PyAPI_DATA macro for older versions of Python (< 2.3).
authorJelmer Vernooij <jelmer@samba.org>
Tue, 29 Jan 2008 13:27:27 +0000 (14:27 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 29 Jan 2008 13:27:27 +0000 (14:27 +0100)
source/scripting/python/pyrpc.h

index 5390c6923da95d29c5fc8da7a3c45970935b1486..3a5d235cfccb6a968f248aa6be1859a26c79ab0b 100644 (file)
@@ -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
 #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