build: implicitly include config.h

config.h is meant to be around in all files, as it contains stuff like
_GNU_SOURCE, NDEBUG and HAVE_*.

Make these definitions available without needing to #include config.h
every single time.

Signed-off-by: Ran Benita <ran234@gmail.com>
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
Ran Benita 2012-03-04 18:38:54 +02:00 committed by David Herrmann
parent 1c909c930c
commit d8cf293c94
4 changed files with 1 additions and 7 deletions

View File

@ -11,6 +11,7 @@ noinst_LTLIBRARIES = libkmscon-core.la
AM_CFLAGS = \
-Wall
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
-I $(srcdir)/src \
-I $(srcdir)/external
AM_LDFLAGS = \

View File

@ -38,8 +38,6 @@
#include <stdarg.h>
#include <stdlib.h>
#include "config.h"
/* LOG_EMERG and LOG_ALERT do not make sense for this application */
#define LOG_CRIT "<2>" /* error that cannot be handled correctly */
#define LOG_ERR "<3>" /* error detected */

View File

@ -23,9 +23,6 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/* for pty functions */
#define _XOPEN_SOURCE 700
#include <errno.h>
#include <fcntl.h>
#include <paths.h>

View File

@ -39,8 +39,6 @@
* $ ls -la | ./test_console
*/
#define _BSD_SOURCE
#include <errno.h>
#include <inttypes.h>
#include <locale.h>