Created
October 17, 2019 06:22
-
-
Save jun66j5/8a9e22ba3bd58d5b421642aadfae82d1 to your computer and use it in GitHub Desktop.
Avoid C4115 from uses `struct time *` in pytime.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: subversion/bindings/swig/include/svn_global.swg | |
=================================================================== | |
--- subversion/bindings/swig/include/svn_global.swg (revision 1868505) | |
+++ subversion/bindings/swig/include/svn_global.swg (working copy) | |
@@ -34,6 +34,7 @@ | |
#ifdef SWIGPYTHON | |
%begin %{ | |
#define SWIG_PYTHON_STRICT_BYTE_CHAR | |
+struct timeval; /* avoid C4115 from uses `struct time *` in pytime.h */ | |
%} | |
#endif | |
Index: subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c | |
=================================================================== | |
--- subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c (revision 1868505) | |
+++ subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c (working copy) | |
@@ -24,6 +24,8 @@ | |
/* Tell swigutil_py.h that we're inside the implementation */ | |
#define SVN_SWIG_SWIGUTIL_PY_C | |
+struct timeval; /* avoid C4115 from uses `struct time *` in pytime.h */ | |
+ | |
#include <Python.h> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment