[pygobject/more-build-warnings] Include Python.h first



commit 8de613340dab3e5c416f2acdfdaa14940a6e7db7
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Thu Apr 12 11:53:55 2018 +0200

    Include Python.h first
    
    prevents _POSIX_C_SOURCE redefinition errors

 gi/pygi-resulttuple.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gi/pygi-resulttuple.c b/gi/pygi-resulttuple.c
index b2212aff..f3a58e1e 100644
--- a/gi/pygi-resulttuple.c
+++ b/gi/pygi-resulttuple.c
@@ -17,6 +17,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <Python.h>
 #include <glib.h>
 #include "pygi-resulttuple.h"
 #include "pygi-python-compat.h"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]