summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pycxx/files/pycxx-6.1.0-C_compatible_headers.patch')
-rw-r--r--dev-python/pycxx/files/pycxx-6.1.0-C_compatible_headers.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-python/pycxx/files/pycxx-6.1.0-C_compatible_headers.patch b/dev-python/pycxx/files/pycxx-6.1.0-C_compatible_headers.patch
new file mode 100644
index 000000000000..9ec64366e2c3
--- /dev/null
+++ b/dev-python/pycxx/files/pycxx-6.1.0-C_compatible_headers.patch
@@ -0,0 +1,40 @@
+--- CXX/WrapPython.h
++++ CXX/WrapPython.h
+@@ -1,3 +1,4 @@
++/*
+ //-----------------------------------------------------------------------------
+ //
+ // Copyright (c) 1998 - 2007, The Regents of the University of California
+@@ -34,27 +35,28 @@
+ // DAMAGE.
+ //
+ //-----------------------------------------------------------------------------
++*/
+
+ #ifndef __PyCXX_wrap_python_hxx__
+ #define __PyCXX_wrap_python_hxx__
+
+-// On some platforms we have to include time.h to get select defined
++/* On some platforms we have to include time.h to get select defined */
+ #if !defined(__WIN32__) && !defined(WIN32) && !defined(_WIN32) && !defined(_WIN64)
+ #include <sys/time.h>
+ #endif
+
+-// Prevent multiple conflicting definitions of swab from stdlib.h and unistd.h
++/* Prevent multiple conflicting definitions of swab from stdlib.h and unistd.h */
+ #if defined(__sun) || defined(sun)
+ #if defined(_XPG4)
+ #undef _XPG4
+ #endif
+ #endif
+
+-// Python.h will redefine these and generate warning in the process
++/* Python.h will redefine these and generate warning in the process */
+ #undef _XOPEN_SOURCE
+ #undef _POSIX_C_SOURCE
+
+-// pull in python definitions
++/* pull in python definitions */
+ #include <Python.h>
+
+ #endif