Portability: should return success if iconv is not glibc.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Sat, 28 Sep 2002 17:48:46 +0000 (17:48 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Sat, 28 Sep 2002 17:48:46 +0000 (17:48 +0000)
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[])