diff --git a/binlog.c b/binlog.c index 5e908db..36407f7 100644 --- a/binlog.c +++ b/binlog.c @@ -16,7 +16,11 @@ Copyright Vitaly Valtman 2013 */ + +#ifdef HAVE_CONFIG_H #include "config.h" +#endif + #ifdef USE_LUA # include "lua-tg.h" #endif diff --git a/interface.c b/interface.c index 71e699c..24ac58f 100644 --- a/interface.c +++ b/interface.c @@ -17,7 +17,10 @@ Copyright Vitaly Valtman 2013 */ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif + #define _GNU_SOURCE #include diff --git a/loop.c b/loop.c index fa06a2c..c8bc2e7 100644 --- a/loop.c +++ b/loop.c @@ -16,13 +16,16 @@ Copyright Vitaly Valtman 2013 */ -#define READLINE_CALLBACKS + +#ifdef HAVE_CONFIG_H #include "config.h" +#endif + +#define READLINE_CALLBACKS #define _GNU_SOURCE #include #include - #include #include #ifdef READLINE_GNU diff --git a/lua-tg.c b/lua-tg.c index c3ff97e..62d9bb7 100644 --- a/lua-tg.c +++ b/lua-tg.c @@ -1,4 +1,6 @@ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #ifdef USE_LUA #include "lua-tg.h" diff --git a/main.c b/main.c index a832109..88410be 100644 --- a/main.c +++ b/main.c @@ -16,8 +16,12 @@ Copyright Vitaly Valtman 2013 */ -#define _GNU_SOURCE + +#ifdef HAVE_CONFIG_H #include "config.h" +#endif + +#define _GNU_SOURCE #include #include diff --git a/mtproto-client.c b/mtproto-client.c index 7f1d592..844af9c 100644 --- a/mtproto-client.c +++ b/mtproto-client.c @@ -17,6 +17,11 @@ Copyright Nikolay Durov, Andrey Lopatin 2012-2013 Copyright Vitaly Valtman 2013 */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #define _FILE_OFFSET_BITS 64 #include diff --git a/mtproto-common.c b/mtproto-common.c index 6d958de..12efcca 100644 --- a/mtproto-common.c +++ b/mtproto-common.c @@ -17,6 +17,11 @@ Copyright Nikolay Durov, Andrey Lopatin 2012-2013 Copyright Vitaly Valtman 2013 */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #define _FILE_OFFSET_BITS 64 #include diff --git a/net.c b/net.c index 6c672fc..bbc9a48 100644 --- a/net.c +++ b/net.c @@ -16,6 +16,11 @@ Copyright Vitaly Valtman 2013 */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #define _GNU_SOURCE #include #include diff --git a/queries.c b/queries.c index 339e214..de0232b 100644 --- a/queries.c +++ b/queries.c @@ -16,6 +16,11 @@ Copyright Vitaly Valtman 2013 */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #define _FILE_OFFSET_BITS 64 #include #include diff --git a/structures.c b/structures.c index 0bde616..81af89b 100644 --- a/structures.c +++ b/structures.c @@ -17,7 +17,9 @@ Copyright Vitaly Valtman 2013 */ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include #include diff --git a/tools.c b/tools.c index 208036f..74ff5d2 100644 --- a/tools.c +++ b/tools.c @@ -17,6 +17,10 @@ Copyright Vitaly Valtman 2013 */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #define _GNU_SOURCE #include