diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-02-11 23:10:12 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-02-11 23:10:12 +0100 |
commit | b3dfd8d3e2cd9412b598d2c5c26228cdc930cc0b (patch) | |
tree | bf9083432381fa8ef0fc23280c60eaaf75b52dfe /src | |
parent | 270b5b2ad07eb6c419078e4b7ceea9791c5625f6 (diff) | |
download | gnunet-b3dfd8d3e2cd9412b598d2c5c26228cdc930cc0b.tar.gz gnunet-b3dfd8d3e2cd9412b598d2c5c26228cdc930cc0b.zip |
use idn2.h or idna.h depending on HAVE_LIBIDN/HAVE_LIBIDN
Diffstat (limited to 'src')
-rw-r--r-- | src/util/dnsparser.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util/dnsparser.c b/src/util/dnsparser.c index 2baa76ef2..55a9ff6c8 100644 --- a/src/util/dnsparser.c +++ b/src/util/dnsparser.c | |||
@@ -25,15 +25,19 @@ | |||
25 | * @author Christian Grothoff | 25 | * @author Christian Grothoff |
26 | */ | 26 | */ |
27 | #include "platform.h" | 27 | #include "platform.h" |
28 | #if HAVE_LIBIDN2 | ||
28 | #if HAVE_IDN2_H | 29 | #if HAVE_IDN2_H |
29 | #include <idn2.h> | 30 | #include <idn2.h> |
30 | #elif HAVE_IDN2_IDN2_H | 31 | #elif HAVE_IDN2_IDN2_H |
31 | #include <idn2/idn2.h> | 32 | #include <idn2/idn2.h> |
32 | #elif HAVE_IDNA_H | 33 | #endif |
34 | #elif HAVE_LIBIDN | ||
35 | #if HAVE_IDNA_H | ||
33 | #include <idna.h> | 36 | #include <idna.h> |
34 | #elif HAVE_IDN_IDNA_H | 37 | #elif HAVE_IDN_IDNA_H |
35 | #include <idn/idna.h> | 38 | #include <idn/idna.h> |
36 | #endif | 39 | #endif |
40 | #endif | ||
37 | #if WINDOWS | 41 | #if WINDOWS |
38 | #include <idn-free.h> | 42 | #include <idn-free.h> |
39 | #endif | 43 | #endif |