-make doxygen happy
authorChristian Grothoff <christian@grothoff.org>
Thu, 3 May 2012 07:47:50 +0000 (07:47 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 3 May 2012 07:47:50 +0000 (07:47 +0000)
src/gns/nss/nss_gns.c

index 28c3423909d54d1b9ade20f693aed6089d5e8e5e..9755ea1116a387b8397c3d3cb54a665e170dc9d5 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 
-#elif defined(NSS_IPV4_ONLY)
+#ifdef NSS_IPV4_ONLY
 #define _nss_mdns_gethostbyname2_r _nss_gns4_minimal_gethostbyname2_r
 #define _nss_mdns_gethostbyname_r  _nss_gns4_minimal_gethostbyname_r
 #define _nss_mdns_gethostbyaddr_r  _nss_gns4_minimal_gethostbyaddr_r
-#elif defined(NSS_IPV6_ONLY)
+#endif
+
+#ifdef NSS_IPV6_ONLY
 #define _nss_mdns_gethostbyname2_r _nss_gns6_gethostbyname2_r
 #define _nss_mdns_gethostbyname_r  _nss_gns6_gethostbyname_r
 #define _nss_mdns_gethostbyaddr_r  _nss_gns6_gethostbyaddr_r
-#else
+#endif
+
+#ifndef NSS_IPV4_ONLY
+#ifndef NSS_IPV6_ONLY
 #define _nss_mdns_gethostbyname2_r _nss_gns_gethostbyname2_r
 #define _nss_mdns_gethostbyname_r  _nss_gns_gethostbyname_r
 #define _nss_mdns_gethostbyaddr_r  _nss_gns_gethostbyaddr_r
 #endif
+#endif
 
 /* Maximum number of entries to return */
 #define MAX_ENTRIES 16