fix include orders because python defines _GNU_SOURCE unconditionally and it can collide with other libs
This commit is contained in:
parent
0cf690a8aa
commit
6aa4dabf5f
10
loop.c
10
loop.c
@ -21,7 +21,13 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if USE_PYTHON
|
||||||
|
#include "python-tg.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef _GNU_SOURCE
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
#endif
|
||||||
#define READLINE_CALLBACKS
|
#define READLINE_CALLBACKS
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@ -59,9 +65,7 @@
|
|||||||
#if USE_LUA
|
#if USE_LUA
|
||||||
#include "lua-tg.h"
|
#include "lua-tg.h"
|
||||||
#endif
|
#endif
|
||||||
#if USE_PYTHON
|
|
||||||
#include "python-tg.h"
|
|
||||||
#endif
|
|
||||||
#include <tgl/tgl.h>
|
#include <tgl/tgl.h>
|
||||||
#include <tgl/tgl-binlog.h>
|
#include <tgl/tgl-binlog.h>
|
||||||
#include <tgl/tgl-net.h>
|
#include <tgl/tgl-net.h>
|
||||||
|
7
main.c
7
main.c
@ -21,6 +21,10 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_PYTHON
|
||||||
|
# include "python-tg.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -75,9 +79,6 @@
|
|||||||
# include "lua-tg.h"
|
# include "lua-tg.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_PYTHON
|
|
||||||
# include "python-tg.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <tgl/tgl.h>
|
#include <tgl/tgl.h>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user