diff options
Diffstat (limited to 'include/compat/resolv.h')
-rw-r--r-- | include/compat/resolv.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/compat/resolv.h b/include/compat/resolv.h new file mode 100644 index 0000000..42dec07 --- /dev/null +++ b/include/compat/resolv.h | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | * Public domain | ||
3 | * resolv.h compatibility shim | ||
4 | */ | ||
5 | |||
6 | #ifndef LIBCRYPTOCOMPAT_RESOLV_H | ||
7 | #define LIBCRYPTOCOMPAT_RESOLV_H | ||
8 | |||
9 | #ifdef _MSC_VER | ||
10 | #if _MSC_VER >= 1900 | ||
11 | #include <../ucrt/resolv.h> | ||
12 | #else | ||
13 | #include <../include/resolv.h> | ||
14 | #endif | ||
15 | #else | ||
16 | #include_next <resolv.h> | ||
17 | #endif | ||
18 | |||
19 | #ifndef HAVE_B64_NTOP | ||
20 | int b64_ntop(unsigned char const *, size_t, char *, size_t); | ||
21 | int b64_pton(char const *, unsigned char *, size_t); | ||
22 | #endif | ||
23 | |||
24 | #endif | ||