Fix -Wundef warning for HAVE_OBSTACK
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 10 Jul 2014 08:48:13 +0000 (14:18 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 10 Jul 2014 08:48:13 +0000 (14:18 +0530)
Remove the HAVE_OBSTACK macro check and include obstack check in
include path order since we don't have a copy of obstack.h in the
current directory.

ChangeLog
locale/programs/simple-hash.c

index 72e9cf9..dc0b76c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
+       * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
+
        [BZ #17125]
        * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
        libc_freeres_ptr.
index ef371a0..666e303 100644 (file)
 #include <stdint.h>
 #include <sys/types.h>
 
-#if HAVE_OBSTACK
-# include <obstack.h>
-#else
-# include "obstack.h"
-#endif
+#include <obstack.h>
 
 #ifdef HAVE_VALUES_H
 # include <values.h>