More EasyTree compatibility.
[gedcom-parse.git] / t / src / pathtest.c
index 0208b28ffc7f20de3547eba9fcfc0da3353c0603..8804124a19e5ccbd6390c3e2f4ca11215e355e61 100644 (file)
 
 #include <stdlib.h>
 #include <string.h>
+#include "config.h"
 #include "gedcom.h"
 
 int check_gconv_path()
 {
+#ifdef USE_GLIBC_ICONV
   char* path = getenv("GCONV_PATH");
   if (path == NULL || strstr(path, PKGDATADIR) == NULL)
     return 1;
-  else
-    return 0;
+#endif
+  return 0;
 }
 
 int main(int argc, char* argv[])