Commit 6aa4dabf authored by Vincent Castellano's avatar Vincent Castellano

fix include orders because python defines _GNU_SOURCE unconditionally and it...

fix include orders because python defines _GNU_SOURCE unconditionally and it can collide with other libs
parent 0cf690a8
......@@ -21,7 +21,13 @@
#include "config.h"
#endif
#if USE_PYTHON
#include "python-tg.h"
#endif
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#define READLINE_CALLBACKS
#include <assert.h>
......@@ -59,9 +65,7 @@
#if USE_LUA
#include "lua-tg.h"
#endif
#if USE_PYTHON
#include "python-tg.h"
#endif
#include <tgl/tgl.h>
#include <tgl/tgl-binlog.h>
#include <tgl/tgl-net.h>
......
......@@ -21,6 +21,10 @@
#include "config.h"
#endif
#ifdef USE_PYTHON
# include "python-tg.h"
#endif
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
......@@ -75,9 +79,6 @@
# include "lua-tg.h"
#endif
#ifdef USE_PYTHON
# include "python-tg.h"
#endif
#include <tgl/tgl.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment