Only one include of stdio.h and with _GNU_SOURCE defined.
authorAdam Dickmeiss <adam@indexdata.dk>
Sun, 17 Jun 2007 18:22:49 +0000 (18:22 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Sun, 17 Jun 2007 18:22:49 +0000 (18:22 +0000)
Added include of "cconfig.h". _all_ Pazpar2 source must include it.

src/icu_chain_test.c

index 9d4fddd..6c630ae 100644 (file)
@@ -2,10 +2,13 @@
  gcc -I/usr/include/libxml2 -lxml2 -o icu-xml-convert icu-xml-convert.c
  */
 
-#include <stdio.h>
-#include <string.h>
+#if HAVE_CONFIG_H
+#include "cconfig.h"
+#endif
 
 #define _GNU_SOURCE
+#include <string.h>
+
 #include <stdio.h>
 #include <stdlib.h>