Remove now useless #define for getline()

getline() is no more used. So no need to use this ugly hack.

This also solves a compiler warning;
In file included from ../libnfc/log.h:22:0,
                 from ../libnfc/chips/pn53x-internal.h:28,
                 from ../libnfc/chips/pn53x.h:31,
                 from pn53x-tamashell.c:68:
../config.h:153:0: warning: "_XOPEN_SOURCE" redefined [enabled by default]
/usr/include/features.h:165:0: note: this is the location of the previous definition
This commit is contained in:
Ludovic Rousseau 2012-05-15 07:57:37 +00:00
parent 7b82a98b72
commit d28889c696

View file

@ -36,8 +36,6 @@
# include "config.h"
#endif // HAVE_CONFIG_H
# define _GNU_SOURCE // for getline on system with glibc < 2.10
# define _POSIX_C_SOURCE 200809L // for getline on system with glibc >= 2.10
# include <stdio.h>
#if defined(HAVE_READLINE)
# include <readline/readline.h>