summaryrefslogtreecommitdiff
path: root/Include/osmodule.h
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2016-06-04 12:06:26 -0700
committerEthan Furman <ethan@stoneleaf.us>2016-06-04 12:06:26 -0700
commit410ef8e23088ab2b8bd92ac70a8176f71da2b931 (patch)
treedceeb23e4a2dcddecc72e0bc6faa15a1177ab633 /Include/osmodule.h
parentc55014f3717ce8a810a7e934c8ad5b519dbf88c5 (diff)
downloadcpython-git-410ef8e23088ab2b8bd92ac70a8176f71da2b931.tar.gz
issue27186: add C version of os.fspath(); patch by Jelle Zijlstra
Diffstat (limited to 'Include/osmodule.h')
-rw-r--r--Include/osmodule.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Include/osmodule.h b/Include/osmodule.h
new file mode 100644
index 0000000000..71467577cb
--- /dev/null
+++ b/Include/osmodule.h
@@ -0,0 +1,15 @@
+
+/* os module interface */
+
+#ifndef Py_OSMODULE_H
+#define Py_OSMODULE_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+PyAPI_FUNC(PyObject *) PyOS_FSPath(PyObject *path);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* !Py_OSMODULE_H */