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:
parent
1c909c930c
commit
d8cf293c94
@ -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 = \
|
||||
|
@ -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 */
|
||||
|
@ -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>
|
||||
|
@ -39,8 +39,6 @@
|
||||
* $ ls -la | ./test_console
|
||||
*/
|
||||
|
||||
#define _BSD_SOURCE
|
||||
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <locale.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user