Commit e27a27c4 authored by antma's avatar antma

fix #include "config.h" for all source files

parent dd40e9b3
...@@ -16,7 +16,11 @@ ...@@ -16,7 +16,11 @@
Copyright Vitaly Valtman 2013 Copyright Vitaly Valtman 2013
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif
#ifdef USE_LUA #ifdef USE_LUA
# include "lua-tg.h" # include "lua-tg.h"
#endif #endif
......
...@@ -17,7 +17,10 @@ ...@@ -17,7 +17,10 @@
Copyright Vitaly Valtman 2013 Copyright Vitaly Valtman 2013
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif
#define _GNU_SOURCE #define _GNU_SOURCE
#include <assert.h> #include <assert.h>
......
...@@ -16,13 +16,16 @@ ...@@ -16,13 +16,16 @@
Copyright Vitaly Valtman 2013 Copyright Vitaly Valtman 2013
*/ */
#define READLINE_CALLBACKS
#ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif
#define READLINE_CALLBACKS
#define _GNU_SOURCE #define _GNU_SOURCE
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef READLINE_GNU #ifdef READLINE_GNU
......
#ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif
#ifdef USE_LUA #ifdef USE_LUA
#include "lua-tg.h" #include "lua-tg.h"
......
...@@ -16,8 +16,12 @@ ...@@ -16,8 +16,12 @@
Copyright Vitaly Valtman 2013 Copyright Vitaly Valtman 2013
*/ */
#define _GNU_SOURCE
#ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif
#define _GNU_SOURCE
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
......
...@@ -17,6 +17,11 @@ ...@@ -17,6 +17,11 @@
Copyright Nikolay Durov, Andrey Lopatin 2012-2013 Copyright Nikolay Durov, Andrey Lopatin 2012-2013
Copyright Vitaly Valtman 2013 Copyright Vitaly Valtman 2013
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#define _FILE_OFFSET_BITS 64 #define _FILE_OFFSET_BITS 64
#include <assert.h> #include <assert.h>
......
...@@ -17,6 +17,11 @@ ...@@ -17,6 +17,11 @@
Copyright Nikolay Durov, Andrey Lopatin 2012-2013 Copyright Nikolay Durov, Andrey Lopatin 2012-2013
Copyright Vitaly Valtman 2013 Copyright Vitaly Valtman 2013
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#define _FILE_OFFSET_BITS 64 #define _FILE_OFFSET_BITS 64
#include <assert.h> #include <assert.h>
......
...@@ -16,6 +16,11 @@ ...@@ -16,6 +16,11 @@
Copyright Vitaly Valtman 2013 Copyright Vitaly Valtman 2013
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#define _GNU_SOURCE #define _GNU_SOURCE
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -16,6 +16,11 @@ ...@@ -16,6 +16,11 @@
Copyright Vitaly Valtman 2013 Copyright Vitaly Valtman 2013
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#define _FILE_OFFSET_BITS 64 #define _FILE_OFFSET_BITS 64
#include <string.h> #include <string.h>
#include <memory.h> #include <memory.h>
......
...@@ -17,7 +17,9 @@ ...@@ -17,7 +17,9 @@
Copyright Vitaly Valtman 2013 Copyright Vitaly Valtman 2013
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
Copyright Vitaly Valtman 2013 Copyright Vitaly Valtman 2013
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#define _GNU_SOURCE #define _GNU_SOURCE
#include <assert.h> #include <assert.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