summaryrefslogtreecommitdiff
path: root/Include/descrobject.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-03-30 08:57:12 +0000
committerMartin v. Löwis <martin@v.loewis.de>2002-03-30 08:57:12 +0000
commit522cf1f6fb2dab78702af1f1f06b0855fab75149 (patch)
tree335bb4e2454d3f44951890ee32ce7ebbcf3ff2ca /Include/descrobject.h
parentdf4d1377ed103f157a5ba36601ddd03624d2223d (diff)
downloadcpython-git-522cf1f6fb2dab78702af1f1f06b0855fab75149.tar.gz
Patch #536908: Add missing #include guards/extern "C".
Diffstat (limited to 'Include/descrobject.h')
-rw-r--r--Include/descrobject.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Include/descrobject.h b/Include/descrobject.h
index 918dd5a042..6482e56a4d 100644
--- a/Include/descrobject.h
+++ b/Include/descrobject.h
@@ -1,4 +1,9 @@
/* Descriptors */
+#ifndef Py_DESCROBJECT_H
+#define Py_DESCROBJECT_H
+#ifdef __cplusplus
+extern "C" {
+#endif
typedef PyObject *(*getter)(PyObject *, void *);
typedef int (*setter)(PyObject *, PyObject *, void *);
@@ -78,3 +83,8 @@ extern DL_IMPORT(PyObject *) PyWrapper_New(PyObject *, PyObject *);
extern DL_IMPORT(PyTypeObject) PyProperty_Type;
+#ifdef __cplusplus
+}
+#endif
+#endif /* !Py_DESCROBJECT_H */
+