From d28889c6966b44e0c53fc5dee5ea42e5d5edfc0a Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Tue, 15 May 2012 07:57:37 +0000 Subject: [PATCH] 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 --- examples/pn53x-tamashell.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/pn53x-tamashell.c b/examples/pn53x-tamashell.c index 86731ea..933e6a8 100644 --- a/examples/pn53x-tamashell.c +++ b/examples/pn53x-tamashell.c @@ -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 #if defined(HAVE_READLINE) # include