summaryrefslogtreecommitdiff
path: root/Include/boolobject.h
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2002-04-06 03:58:41 +0000
committerMark Hammond <mhammond@skippinet.com.au>2002-04-06 03:58:41 +0000
commit851b80ea96383be2e95f36b238f390e9c2f9880e (patch)
tree86f0758f7c32ad10884a169f39045c432412a016 /Include/boolobject.h
parentdf7002aa3796c32e38d7a12d4762360e11386f86 (diff)
downloadcpython-851b80ea96383be2e95f36b238f390e9c2f9880e.tar.gz
Add standard header preamble and footer, a-la intobject.h. Main purpose is extern "C" for C++ programs.
Diffstat (limited to 'Include/boolobject.h')
-rw-r--r--Include/boolobject.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Include/boolobject.h b/Include/boolobject.h
index 5bbe9695b1..4e5b99f34d 100644
--- a/Include/boolobject.h
+++ b/Include/boolobject.h
@@ -1,5 +1,12 @@
/* Boolean object interface */
+#ifndef Py_BOOLOBJECT_H
+#define Py_BOOLOBJECT_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
typedef PyIntObject PyBoolObject;
extern DL_IMPORT(PyTypeObject) PyBool_Type;
@@ -18,3 +25,8 @@ extern DL_IMPORT(PyIntObject) _Py_ZeroStruct, _Py_TrueStruct;
/* Function to return a bool from a C long */
PyObject *PyBool_FromLong(long);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* !Py_BOOLOBJECT_H */