git.samba.org
/
metze
/
samba
/
wb-ndr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a79ceb
)
python: Provide PyAPI_DATA macro for older versions of Python (< 2.3).
author
Jelmer Vernooij
<jelmer@samba.org>
Tue, 29 Jan 2008 13:27:27 +0000
(14:27 +0100)
committer
Jelmer Vernooij
<jelmer@samba.org>
Tue, 29 Jan 2008 13:27:27 +0000
(14:27 +0100)
source/scripting/python/pyrpc.h
patch
|
blob
|
history
diff --git
a/source/scripting/python/pyrpc.h
b/source/scripting/python/pyrpc.h
index 5390c6923da95d29c5fc8da7a3c45970935b1486..3a5d235cfccb6a968f248aa6be1859a26c79ab0b 100644
(file)
--- a/
source/scripting/python/pyrpc.h
+++ b/
source/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