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

This commit is contained in:
antma 2014-01-13 17:05:25 +04:00
parent dd40e9b36f
commit e27a27c4a0
11 changed files with 45 additions and 3 deletions

View File

@ -16,7 +16,11 @@
Copyright Vitaly Valtman 2013
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef USE_LUA
# include "lua-tg.h"
#endif

View File

@ -17,7 +17,10 @@
Copyright Vitaly Valtman 2013
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#define _GNU_SOURCE
#include <assert.h>

7
loop.c
View File

@ -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 <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef READLINE_GNU

View File

@ -1,4 +1,6 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef USE_LUA
#include "lua-tg.h"

6
main.c
View File

@ -16,8 +16,12 @@
Copyright Vitaly Valtman 2013
*/
#define _GNU_SOURCE
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#define _GNU_SOURCE
#include <stdio.h>
#include <unistd.h>

View File

@ -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 <assert.h>

View File

@ -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 <assert.h>

5
net.c
View File

@ -16,6 +16,11 @@
Copyright Vitaly Valtman 2013
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#define _GNU_SOURCE
#include <string.h>
#include <stdlib.h>

View File

@ -16,6 +16,11 @@
Copyright Vitaly Valtman 2013
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#define _FILE_OFFSET_BITS 64
#include <string.h>
#include <memory.h>

View File

@ -17,7 +17,9 @@
Copyright Vitaly Valtman 2013
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <assert.h>
#include <string.h>

View File

@ -17,6 +17,10 @@
Copyright Vitaly Valtman 2013
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#define _GNU_SOURCE
#include <assert.h>