42 # if defined LIBIDN_BUILDING && defined HAVE_VISIBILITY && HAVE_VISIBILITY
43 # define IDNAPI __attribute__((__visibility__("default")))
44 # elif defined LIBIDN_BUILDING && defined _MSC_VER && ! defined LIBIDN_STATIC
45 # define IDNAPI __declspec(dllexport)
46 # elif defined _MSC_VER && ! defined LIBIDN_STATIC
47 # define IDNAPI __declspec(dllimport)
void IDNAPI idn_free(void *ptr)