mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
preprocessor magic around the libidn idn_free() stuff to remain workable
both with older libidn versions without idn_free() and with libidn versions that gets installed without idn-free.h
This commit is contained in:
parent
4e7575fc7a
commit
0912015a5c
@ -87,9 +87,18 @@
|
|||||||
#ifdef USE_LIBIDN
|
#ifdef USE_LIBIDN
|
||||||
#include <idna.h>
|
#include <idna.h>
|
||||||
#include <stringprep.h>
|
#include <stringprep.h>
|
||||||
|
#ifdef HAVE_IDN_FREE_H
|
||||||
|
#include <idn-free.h>
|
||||||
|
#else
|
||||||
void idn_free (void *ptr); /* prototype from idn-free.h, not provided by
|
void idn_free (void *ptr); /* prototype from idn-free.h, not provided by
|
||||||
libidn 0.4.5's make install! */
|
libidn 0.4.5's make install! */
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef HAVE_IDN_FREE
|
||||||
|
/* if idn_free() was not found in this version of libidn, use plain free()
|
||||||
|
instead */
|
||||||
|
#define idn_free(x) (free)(x)
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_OPENSSL_ENGINE_H
|
#ifdef HAVE_OPENSSL_ENGINE_H
|
||||||
#include <openssl/engine.h>
|
#include <openssl/engine.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user