mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 08:28:59 +08:00
[libidn2] Update to 2.3.1 (#22959)
* [libidn2] Update to version 2.3.1. * [libidn2] Update CI baseline * Update version database.
This commit is contained in:
parent
4455e64f20
commit
a709191a63
@ -37,7 +37,7 @@ set(LIB_SRC lib/bidi.c
|
|||||||
set(UNISTR_SRC unistring/c-ctype.c
|
set(UNISTR_SRC unistring/c-ctype.c
|
||||||
unistring/c-strcasecmp.c
|
unistring/c-strcasecmp.c
|
||||||
unistring/c-strncasecmp.c
|
unistring/c-strncasecmp.c
|
||||||
unistring/malloca.c
|
unistring/free.c
|
||||||
unistring/striconveh.c
|
unistring/striconveh.c
|
||||||
unistring/striconveha.c
|
unistring/striconveha.c
|
||||||
unistring/uniconv/u8-conv-from-enc.c
|
unistring/uniconv/u8-conv-from-enc.c
|
||||||
@ -45,6 +45,7 @@ set(UNISTR_SRC unistring/c-ctype.c
|
|||||||
unistring/uniconv/u8-strconv-from-locale.c
|
unistring/uniconv/u8-strconv-from-locale.c
|
||||||
unistring/uniconv/u8-strconv-to-enc.c
|
unistring/uniconv/u8-strconv-to-enc.c
|
||||||
unistring/uniconv/u8-strconv-to-locale.c
|
unistring/uniconv/u8-strconv-to-locale.c
|
||||||
|
unistring/unistr/u32-cmp.c
|
||||||
unistring/unistr/u32-cpy.c
|
unistring/unistr/u32-cpy.c
|
||||||
unistring/unistr/u32-cpy-alloc.c
|
unistring/unistr/u32-cpy-alloc.c
|
||||||
unistring/unistr/u32-mbtouc-unsafe.c
|
unistring/unistr/u32-mbtouc-unsafe.c
|
||||||
@ -86,6 +87,7 @@ set(GL_SRC gl/rawmemchr.c
|
|||||||
gl/strverscmp.c
|
gl/strverscmp.c
|
||||||
gl/msvc-inval.c
|
gl/msvc-inval.c
|
||||||
gl/msvc-nothrow.c
|
gl/msvc-nothrow.c
|
||||||
|
gl/malloca.c
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(libidn2 ${LIB_SRC} ${UNISTR_SRC} ${GL_SRC})
|
add_library(libidn2 ${LIB_SRC} ${UNISTR_SRC} ${GL_SRC})
|
||||||
|
@ -16,12 +16,8 @@
|
|||||||
/* Define to the number of bits in type 'wint_t'. */
|
/* Define to the number of bits in type 'wint_t'. */
|
||||||
/* #undef BITSIZEOF_WINT_T */
|
/* #undef BITSIZEOF_WINT_T */
|
||||||
|
|
||||||
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
|
|
||||||
systems. This function is required for `alloca.c' support on those systems.
|
|
||||||
*/
|
|
||||||
/* #undef CRAY_STACKSEG_END */
|
|
||||||
|
|
||||||
/* Define to 1 if using `alloca.c'. */
|
/* Define to 1 if using 'alloca.c'. */
|
||||||
/* #undef C_ALLOCA */
|
/* #undef C_ALLOCA */
|
||||||
|
|
||||||
/* Define to 1 if // is a file system root distinct from /. */
|
/* Define to 1 if // is a file system root distinct from /. */
|
||||||
@ -31,6 +27,9 @@
|
|||||||
language is requested. */
|
language is requested. */
|
||||||
/* #undef ENABLE_NLS */
|
/* #undef ENABLE_NLS */
|
||||||
|
|
||||||
|
/* Define this to 1 if F_DUPFD behavior does not match POSIX */
|
||||||
|
/* #undef FCNTL_DUPFD_BUGGY */
|
||||||
|
|
||||||
/* Define to a C preprocessor expression that evaluates to 1 or 0, depending
|
/* Define to a C preprocessor expression that evaluates to 1 or 0, depending
|
||||||
whether the gnulib module fscanf shall be considered present. */
|
whether the gnulib module fscanf shall be considered present. */
|
||||||
#define GNULIB_FSCANF 1
|
#define GNULIB_FSCANF 1
|
||||||
@ -704,12 +703,19 @@
|
|||||||
STACK_DIRECTION = 0 => direction of growth unknown */
|
STACK_DIRECTION = 0 => direction of growth unknown */
|
||||||
/* #undef STACK_DIRECTION */
|
/* #undef STACK_DIRECTION */
|
||||||
|
|
||||||
|
/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
|
||||||
|
/* #undef STAT_MACROS_BROKEN */
|
||||||
|
|
||||||
/* Define to 1 if you have the ANSI C header files. */
|
/* Define to 1 if you have the ANSI C header files. */
|
||||||
#define STDC_HEADERS 1
|
#define STDC_HEADERS 1
|
||||||
|
|
||||||
/* Define to 1 if strerror_r returns char *. */
|
/* Define to 1 if strerror_r returns char *. */
|
||||||
/* #undef STRERROR_R_CHAR_P */
|
/* #undef STRERROR_R_CHAR_P */
|
||||||
|
|
||||||
|
/* Define to 1 if the type of the st_atim member of a struct stat is struct
|
||||||
|
timespec. */
|
||||||
|
/* #undef TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC */
|
||||||
|
|
||||||
/* Enable extensions on AIX 3, Interix. */
|
/* Enable extensions on AIX 3, Interix. */
|
||||||
#ifndef _ALL_SOURCE
|
#ifndef _ALL_SOURCE
|
||||||
# define _ALL_SOURCE 1
|
# define _ALL_SOURCE 1
|
||||||
@ -718,11 +724,44 @@
|
|||||||
#ifndef _DARWIN_C_SOURCE
|
#ifndef _DARWIN_C_SOURCE
|
||||||
# define _DARWIN_C_SOURCE 1
|
# define _DARWIN_C_SOURCE 1
|
||||||
#endif
|
#endif
|
||||||
|
/* Enable general extensions on Solaris. */
|
||||||
|
#ifndef __EXTENSIONS__
|
||||||
|
/* # undef __EXTENSIONS__ */
|
||||||
|
#endif
|
||||||
/* Enable GNU extensions on systems that have them. */
|
/* Enable GNU extensions on systems that have them. */
|
||||||
#ifndef _GNU_SOURCE
|
#ifndef _GNU_SOURCE
|
||||||
# define _GNU_SOURCE 1
|
# define _GNU_SOURCE 1
|
||||||
#endif
|
#endif
|
||||||
/* Enable threading extensions on Solaris. */
|
/* Enable X/Open compliant socket functions that do not require linking
|
||||||
|
with -lxnet on HP-UX 11.11. */
|
||||||
|
#ifndef _HPUX_ALT_XOPEN_SOCKET_API
|
||||||
|
/* # undef _HPUX_ALT_XOPEN_SOCKET_API */
|
||||||
|
#endif
|
||||||
|
/* Identify the host operating system as Minix.
|
||||||
|
This macro does not affect the system headers' behavior.
|
||||||
|
A future release of Autoconf may stop defining this macro. */
|
||||||
|
#ifndef _MINIX
|
||||||
|
/* # undef _MINIX */
|
||||||
|
#endif
|
||||||
|
/* Enable general extensions on NetBSD.
|
||||||
|
Enable NetBSD compatibility extensions on Minix. */
|
||||||
|
#ifndef _NETBSD_SOURCE
|
||||||
|
/* # undef _NETBSD_SOURCE */
|
||||||
|
#endif
|
||||||
|
/* Enable OpenBSD compatibility extensions on NetBSD.
|
||||||
|
Oddly enough, this does nothing on OpenBSD. */
|
||||||
|
#ifndef _OPENBSD_SOURCE
|
||||||
|
/* # undef _OPENBSD_SOURCE */
|
||||||
|
#endif
|
||||||
|
/* Define to 1 if needed for POSIX-compatible behavior. */
|
||||||
|
#ifndef _POSIX_SOURCE
|
||||||
|
/* # undef _POSIX_SOURCE */
|
||||||
|
#endif
|
||||||
|
/* Define to 2 if needed for POSIX-compatible behavior. */
|
||||||
|
#ifndef _POSIX_1_SOURCE
|
||||||
|
/* # undef _POSIX_1_SOURCE */
|
||||||
|
#endif
|
||||||
|
/* Enable POSIX-compatible threading on Solaris. */
|
||||||
#ifndef _POSIX_PTHREAD_SEMANTICS
|
#ifndef _POSIX_PTHREAD_SEMANTICS
|
||||||
# define _POSIX_PTHREAD_SEMANTICS 1
|
# define _POSIX_PTHREAD_SEMANTICS 1
|
||||||
#endif
|
#endif
|
||||||
@ -758,16 +797,11 @@
|
|||||||
#ifndef _TANDEM_SOURCE
|
#ifndef _TANDEM_SOURCE
|
||||||
# define _TANDEM_SOURCE 1
|
# define _TANDEM_SOURCE 1
|
||||||
#endif
|
#endif
|
||||||
/* Enable X/Open extensions if necessary. HP-UX 11.11 defines
|
/* Enable X/Open extensions. Define to 500 only if necessary
|
||||||
mbstate_t only if _XOPEN_SOURCE is defined to 500, regardless of
|
to make mbstate_t available. */
|
||||||
whether compiling with -Ae or -D_HPUX_SOURCE=1. */
|
|
||||||
#ifndef _XOPEN_SOURCE
|
#ifndef _XOPEN_SOURCE
|
||||||
/* # undef _XOPEN_SOURCE */
|
/* # undef _XOPEN_SOURCE */
|
||||||
#endif
|
#endif
|
||||||
/* Enable general extensions on Solaris. */
|
|
||||||
#ifndef __EXTENSIONS__
|
|
||||||
# define __EXTENSIONS__ 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* Version number of package */
|
/* Version number of package */
|
||||||
@ -781,19 +815,48 @@
|
|||||||
'wint_t'. */
|
'wint_t'. */
|
||||||
/* #undef WINT_T_SUFFIX */
|
/* #undef WINT_T_SUFFIX */
|
||||||
|
|
||||||
/* Define to 1 if on MINIX. */
|
/* Number of bits in a file offset, on hosts where this is settable. */
|
||||||
/* #undef _MINIX */
|
/* #undef _FILE_OFFSET_BITS */
|
||||||
|
|
||||||
/* Define to 1 to make NetBSD features available. MINIX 3 needs this. */
|
/* True if the compiler says it groks GNU C version MAJOR.MINOR. */
|
||||||
/* #undef _NETBSD_SOURCE */
|
#if defined __GNUC__ && defined __GNUC_MINOR__
|
||||||
|
# define _GL_GNUC_PREREQ(major, minor) \
|
||||||
|
((major) < __GNUC__ + ((minor) <= __GNUC_MINOR__))
|
||||||
|
#else
|
||||||
|
# define _GL_GNUC_PREREQ(major, minor) 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* Define to enable the declarations of ISO C 11 types and functions. */
|
||||||
|
/* #undef _ISOC11_SOURCE */
|
||||||
|
|
||||||
|
/* Define for large files, on AIX-style hosts. */
|
||||||
|
/* #undef _LARGE_FILES */
|
||||||
|
|
||||||
/* The _Noreturn keyword of C11. */
|
/* The _Noreturn keyword of C11. */
|
||||||
#if ! (defined _Noreturn \
|
#ifndef _Noreturn
|
||||||
|| (defined __STDC_VERSION__ && 201112 <= __STDC_VERSION__))
|
# if (defined __cplusplus \
|
||||||
# if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \
|
&& ((201103 <= __cplusplus && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) \
|
||||||
|| 0x5110 <= __SUNPRO_C)
|
|| (defined _MSC_VER && 1900 <= _MSC_VER)) \
|
||||||
|
&& 0)
|
||||||
|
/* [[noreturn]] is not practically usable, because with it the syntax
|
||||||
|
extern _Noreturn void func (...);
|
||||||
|
would not be valid; such a declaration would only be valid with 'extern'
|
||||||
|
and '_Noreturn' swapped, or without the 'extern' keyword. However, some
|
||||||
|
AIX system header files and several gnulib header files use precisely
|
||||||
|
this syntax with 'extern'. */
|
||||||
|
# define _Noreturn [[noreturn]]
|
||||||
|
# elif ((!defined __cplusplus || defined __clang__) \
|
||||||
|
&& (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \
|
||||||
|
|| (!defined __STRICT_ANSI__ \
|
||||||
|
&& (_GL_GNUC_PREREQ (4, 7) \
|
||||||
|
|| (defined __apple_build_version__ \
|
||||||
|
? 6000000 <= __apple_build_version__ \
|
||||||
|
: 3 < __clang_major__ + (5 <= __clang_minor__))))))
|
||||||
|
/* _Noreturn works as-is. */
|
||||||
|
# elif _GL_GNUC_PREREQ (2, 8) || defined __clang__ || 0x5110 <= __SUNPRO_C
|
||||||
# define _Noreturn __attribute__ ((__noreturn__))
|
# define _Noreturn __attribute__ ((__noreturn__))
|
||||||
# elif defined _MSC_VER && 1200 <= _MSC_VER
|
# elif 1200 <= (defined _MSC_VER ? _MSC_VER : 0)
|
||||||
# define _Noreturn __declspec (noreturn)
|
# define _Noreturn __declspec (noreturn)
|
||||||
# else
|
# else
|
||||||
# define _Noreturn
|
# define _Noreturn
|
||||||
@ -801,26 +864,262 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Define to 2 if the system does not provide POSIX.1 features except with
|
|
||||||
this defined. */
|
|
||||||
/* #undef _POSIX_1_SOURCE */
|
|
||||||
|
|
||||||
/* Define to 1 if you need to in order for 'stat' and other things to work. */
|
|
||||||
/* #undef _POSIX_SOURCE */
|
|
||||||
|
|
||||||
/* For standard stat data types on VMS. */
|
/* For standard stat data types on VMS. */
|
||||||
#define _USE_STD_STAT 1
|
#define _USE_STD_STAT 1
|
||||||
|
|
||||||
|
/* Define to rpl_ if the getopt replacement functions and variables should be
|
||||||
|
used. */
|
||||||
|
/* #undef __GETOPT_PREFIX */
|
||||||
|
|
||||||
/* Define to 1 if the system <stdint.h> predates C++11. */
|
/* Define to 1 if the system <stdint.h> predates C++11. */
|
||||||
/* #undef __STDC_CONSTANT_MACROS */
|
/* #undef __STDC_CONSTANT_MACROS */
|
||||||
|
|
||||||
/* Define to 1 if the system <stdint.h> predates C++11. */
|
/* Define to 1 if the system <stdint.h> predates C++11. */
|
||||||
/* #undef __STDC_LIMIT_MACROS */
|
/* #undef __STDC_LIMIT_MACROS */
|
||||||
|
|
||||||
|
/* The _GL_ASYNC_SAFE marker should be attached to functions that are
|
||||||
|
signal handlers (for signals other than SIGABRT, SIGPIPE) or can be
|
||||||
|
invoked from such signal handlers. Such functions have some restrictions:
|
||||||
|
* All functions that it calls should be marked _GL_ASYNC_SAFE as well,
|
||||||
|
or should be listed as async-signal-safe in POSIX
|
||||||
|
<https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_04>
|
||||||
|
section 2.4.3. Note that malloc(), sprintf(), and fwrite(), in
|
||||||
|
particular, are NOT async-signal-safe.
|
||||||
|
* All memory locations (variables and struct fields) that these functions
|
||||||
|
access must be marked 'volatile'. This holds for both read and write
|
||||||
|
accesses. Otherwise the compiler might optimize away stores to and
|
||||||
|
reads from such locations that occur in the program, depending on its
|
||||||
|
data flow analysis. For example, when the program contains a loop
|
||||||
|
that is intended to inspect a variable set from within a signal handler
|
||||||
|
while (!signal_occurred)
|
||||||
|
;
|
||||||
|
the compiler is allowed to transform this into an endless loop if the
|
||||||
|
variable 'signal_occurred' is not declared 'volatile'.
|
||||||
|
Additionally, recall that:
|
||||||
|
* A signal handler should not modify errno (except if it is a handler
|
||||||
|
for a fatal signal and ends by raising the same signal again, thus
|
||||||
|
provoking the termination of the process). If it invokes a function
|
||||||
|
that may clobber errno, it needs to save and restore the value of
|
||||||
|
errno. */
|
||||||
|
#define _GL_ASYNC_SAFE
|
||||||
|
|
||||||
|
|
||||||
|
/* Attributes. */
|
||||||
|
#if (defined __has_attribute \
|
||||||
|
&& (!defined __clang_minor__ \
|
||||||
|
|| 3 < __clang_major__ + (5 <= __clang_minor__)))
|
||||||
|
# define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)
|
||||||
|
#else
|
||||||
|
# define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr
|
||||||
|
# define _GL_ATTR_alloc_size _GL_GNUC_PREREQ (4, 3)
|
||||||
|
# define _GL_ATTR_always_inline _GL_GNUC_PREREQ (3, 2)
|
||||||
|
# define _GL_ATTR_artificial _GL_GNUC_PREREQ (4, 3)
|
||||||
|
# define _GL_ATTR_cold _GL_GNUC_PREREQ (4, 3)
|
||||||
|
# define _GL_ATTR_const _GL_GNUC_PREREQ (2, 95)
|
||||||
|
# define _GL_ATTR_deprecated _GL_GNUC_PREREQ (3, 1)
|
||||||
|
# define _GL_ATTR_diagnose_if 0
|
||||||
|
# define _GL_ATTR_error _GL_GNUC_PREREQ (4, 3)
|
||||||
|
# define _GL_ATTR_externally_visible _GL_GNUC_PREREQ (4, 1)
|
||||||
|
# define _GL_ATTR_fallthrough _GL_GNUC_PREREQ (7, 0)
|
||||||
|
# define _GL_ATTR_format _GL_GNUC_PREREQ (2, 7)
|
||||||
|
# define _GL_ATTR_leaf _GL_GNUC_PREREQ (4, 6)
|
||||||
|
# ifdef _ICC
|
||||||
|
# define _GL_ATTR_may_alias 0
|
||||||
|
# else
|
||||||
|
# define _GL_ATTR_may_alias _GL_GNUC_PREREQ (3, 3)
|
||||||
|
# endif
|
||||||
|
# define _GL_ATTR_malloc _GL_GNUC_PREREQ (3, 0)
|
||||||
|
# define _GL_ATTR_noinline _GL_GNUC_PREREQ (3, 1)
|
||||||
|
# define _GL_ATTR_nonnull _GL_GNUC_PREREQ (3, 3)
|
||||||
|
# define _GL_ATTR_nonstring _GL_GNUC_PREREQ (8, 0)
|
||||||
|
# define _GL_ATTR_nothrow _GL_GNUC_PREREQ (3, 3)
|
||||||
|
# define _GL_ATTR_packed _GL_GNUC_PREREQ (2, 7)
|
||||||
|
# define _GL_ATTR_pure _GL_GNUC_PREREQ (2, 96)
|
||||||
|
# define _GL_ATTR_returns_nonnull _GL_GNUC_PREREQ (4, 9)
|
||||||
|
# define _GL_ATTR_sentinel _GL_GNUC_PREREQ (4, 0)
|
||||||
|
# define _GL_ATTR_unused _GL_GNUC_PREREQ (2, 7)
|
||||||
|
# define _GL_ATTR_warn_unused_result _GL_GNUC_PREREQ (3, 4)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if _GL_HAS_ATTRIBUTE (alloc_size)
|
||||||
|
# define _GL_ATTRIBUTE_ALLOC_SIZE(args) __attribute__ ((__alloc_size__ args))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_ALLOC_SIZE(args)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _GL_HAS_ATTRIBUTE (always_inline)
|
||||||
|
# define _GL_ATTRIBUTE_ALWAYS_INLINE __attribute__ ((__always_inline__))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_ALWAYS_INLINE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _GL_HAS_ATTRIBUTE (artificial)
|
||||||
|
# define _GL_ATTRIBUTE_ARTIFICIAL __attribute__ ((__artificial__))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_ARTIFICIAL
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Avoid __attribute__ ((cold)) on MinGW; see thread starting at
|
||||||
|
<https://lists.gnu.org/r/emacs-devel/2019-04/msg01152.html>.
|
||||||
|
Also, Oracle Studio 12.6 requires 'cold' not '__cold__'. */
|
||||||
|
#if _GL_HAS_ATTRIBUTE (cold) && !defined __MINGW32__
|
||||||
|
# ifndef __SUNPRO_C
|
||||||
|
# define _GL_ATTRIBUTE_COLD __attribute__ ((__cold__))
|
||||||
|
# else
|
||||||
|
# define _GL_ATTRIBUTE_COLD __attribute__ ((cold))
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_COLD
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _GL_HAS_ATTRIBUTE (const)
|
||||||
|
# define _GL_ATTRIBUTE_CONST __attribute__ ((__const__))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_CONST
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if 201710L < __STDC_VERSION__
|
||||||
|
# define _GL_ATTRIBUTE_DEPRECATED [[__deprecated__]]
|
||||||
|
#elif _GL_HAS_ATTRIBUTE (deprecated)
|
||||||
|
# define _GL_ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_DEPRECATED
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _GL_HAS_ATTRIBUTE (error)
|
||||||
|
# define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__error__ (msg)))
|
||||||
|
# define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__warning__ (msg)))
|
||||||
|
#elif _GL_HAS_ATTRIBUTE (diagnose_if)
|
||||||
|
# define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__diagnose_if__ (1, msg, "error")))
|
||||||
|
# define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__diagnose_if__ (1, msg, "warning")))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_ERROR(msg)
|
||||||
|
# define _GL_ATTRIBUTE_WARNING(msg)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _GL_HAS_ATTRIBUTE (externally_visible)
|
||||||
|
# define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE __attribute__ ((externally_visible))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* FALLTHROUGH is special, because it always expands to something. */
|
||||||
|
#if 201710L < __STDC_VERSION__
|
||||||
|
# define _GL_ATTRIBUTE_FALLTHROUGH [[__fallthrough__]]
|
||||||
|
#elif _GL_HAS_ATTRIBUTE (fallthrough)
|
||||||
|
# define _GL_ATTRIBUTE_FALLTHROUGH __attribute__ ((__fallthrough__))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_FALLTHROUGH ((void) 0)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _GL_HAS_ATTRIBUTE (format)
|
||||||
|
# define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_FORMAT(spec)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _GL_HAS_ATTRIBUTE (leaf)
|
||||||
|
# define _GL_ATTRIBUTE_LEAF __attribute__ ((__leaf__))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_LEAF
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Oracle Studio 12.6 mishandles may_alias despite __has_attribute OK. */
|
||||||
|
#if _GL_HAS_ATTRIBUTE (may_alias) && !defined __SUNPRO_C
|
||||||
|
# define _GL_ATTRIBUTE_MAY_ALIAS __attribute__ ((__may_alias__))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_MAY_ALIAS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if 201710L < __STDC_VERSION__
|
||||||
|
# define _GL_ATTRIBUTE_MAYBE_UNUSED [[__maybe_unused__]]
|
||||||
|
#elif _GL_HAS_ATTRIBUTE (unused)
|
||||||
|
# define _GL_ATTRIBUTE_MAYBE_UNUSED __attribute__ ((__unused__))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_MAYBE_UNUSED
|
||||||
|
#endif
|
||||||
|
/* Earlier spellings of this macro. */
|
||||||
|
#define _GL_UNUSED _GL_ATTRIBUTE_MAYBE_UNUSED
|
||||||
|
#define _UNUSED_PARAMETER_ _GL_ATTRIBUTE_MAYBE_UNUSED
|
||||||
|
|
||||||
|
#if _GL_HAS_ATTRIBUTE (malloc)
|
||||||
|
# define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_MALLOC
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if 201710L < __STDC_VERSION__
|
||||||
|
# define _GL_ATTRIBUTE_NODISCARD [[__nodiscard__]]
|
||||||
|
#elif _GL_HAS_ATTRIBUTE (warn_unused_result)
|
||||||
|
# define _GL_ATTRIBUTE_NODISCARD __attribute__ ((__warn_unused_result__))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_NODISCARD
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _GL_HAS_ATTRIBUTE (noinline)
|
||||||
|
# define _GL_ATTRIBUTE_NOINLINE __attribute__ ((__noinline__))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_NOINLINE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _GL_HAS_ATTRIBUTE (nonnull)
|
||||||
|
# define _GL_ATTRIBUTE_NONNULL(args) __attribute__ ((__nonnull__ args))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_NONNULL(args)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _GL_HAS_ATTRIBUTE (nonstring)
|
||||||
|
# define _GL_ATTRIBUTE_NONSTRING __attribute__ ((__nonstring__))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_NONSTRING
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* There is no _GL_ATTRIBUTE_NORETURN; use _Noreturn instead. */
|
||||||
|
|
||||||
|
#if _GL_HAS_ATTRIBUTE (nothrow) && !defined __cplusplus
|
||||||
|
# define _GL_ATTRIBUTE_NOTHROW __attribute__ ((__nothrow__))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_NOTHROW
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _GL_HAS_ATTRIBUTE (packed)
|
||||||
|
# define _GL_ATTRIBUTE_PACKED __attribute__ ((__packed__))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_PACKED
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _GL_HAS_ATTRIBUTE (pure)
|
||||||
|
# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_PURE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _GL_HAS_ATTRIBUTE (returns_nonnull)
|
||||||
|
# define _GL_ATTRIBUTE_RETURNS_NONNULL __attribute__ ((__returns_nonnull__))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_RETURNS_NONNULL
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _GL_HAS_ATTRIBUTE (sentinel)
|
||||||
|
# define _GL_ATTRIBUTE_SENTINEL(pos) __attribute__ ((__sentinel__ pos))
|
||||||
|
#else
|
||||||
|
# define _GL_ATTRIBUTE_SENTINEL(pos)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* To support C++ as well as C, use _GL_UNUSED_LABEL with trailing ';'. */
|
||||||
|
#if !defined __cplusplus || _GL_GNUC_PREREQ (4, 5)
|
||||||
|
# define _GL_UNUSED_LABEL _GL_ATTRIBUTE_MAYBE_UNUSED
|
||||||
|
#else
|
||||||
|
# define _GL_UNUSED_LABEL
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Please see the Gnulib manual for how to use these macros.
|
/* Please see the Gnulib manual for how to use these macros.
|
||||||
|
|
||||||
Suppress extern inline with HP-UX cc, as it appears to be broken; see
|
Suppress extern inline with HP-UX cc, as it appears to be broken; see
|
||||||
<http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
|
<https://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
|
||||||
|
|
||||||
Suppress extern inline with Sun C in standards-conformance mode, as it
|
Suppress extern inline with Sun C in standards-conformance mode, as it
|
||||||
mishandles inline functions that call each other. E.g., for 'inline void f
|
mishandles inline functions that call each other. E.g., for 'inline void f
|
||||||
@ -834,20 +1133,32 @@
|
|||||||
if isdigit is mistakenly implemented via a static inline function,
|
if isdigit is mistakenly implemented via a static inline function,
|
||||||
a program containing an extern inline function that calls isdigit
|
a program containing an extern inline function that calls isdigit
|
||||||
may not work since the C standard prohibits extern inline functions
|
may not work since the C standard prohibits extern inline functions
|
||||||
from calling static functions. This bug is known to occur on:
|
from calling static functions (ISO C 99 section 6.7.4.(3).
|
||||||
|
This bug is known to occur on:
|
||||||
|
|
||||||
OS X 10.8 and earlier; see:
|
OS X 10.8 and earlier; see:
|
||||||
http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html
|
https://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html
|
||||||
|
|
||||||
DragonFly; see
|
DragonFly; see
|
||||||
http://muscles.dragonflybsd.org/bulk/bleeding-edge-potential/latest-per-pkg/ah-tty-0.3.12.log
|
http://muscles.dragonflybsd.org/bulk/clang-master-potential/20141111_102002/logs/ah-tty-0.3.12.log
|
||||||
|
|
||||||
FreeBSD; see:
|
FreeBSD; see:
|
||||||
http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00104.html
|
https://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
|
||||||
|
|
||||||
OS X 10.9 has a macro __header_inline indicating the bug is fixed for C and
|
OS X 10.9 has a macro __header_inline indicating the bug is fixed for C and
|
||||||
for clang but remains for g++; see <http://trac.macports.org/ticket/41033>.
|
for clang but remains for g++; see <https://trac.macports.org/ticket/41033>.
|
||||||
Assume DragonFly and FreeBSD will be similar. */
|
Assume DragonFly and FreeBSD will be similar.
|
||||||
|
|
||||||
|
GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
|
||||||
|
inline semantics, unless -fgnu89-inline is used. It defines a macro
|
||||||
|
__GNUC_STDC_INLINE__ to indicate this situation or a macro
|
||||||
|
__GNUC_GNU_INLINE__ to indicate the opposite situation.
|
||||||
|
GCC 4.2 with -std=c99 or -std=gnu99 implements the GNU C inline
|
||||||
|
semantics but warns, unless -fgnu89-inline is used:
|
||||||
|
warning: C99 inline functions are not supported; using GNU89
|
||||||
|
warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute
|
||||||
|
It defines a macro __GNUC_GNU_INLINE__ to indicate this situation.
|
||||||
|
*/
|
||||||
#if (((defined __APPLE__ && defined __MACH__) \
|
#if (((defined __APPLE__ && defined __MACH__) \
|
||||||
|| defined __DragonFly__ || defined __FreeBSD__) \
|
|| defined __DragonFly__ || defined __FreeBSD__) \
|
||||||
&& (defined __header_inline \
|
&& (defined __header_inline \
|
||||||
@ -928,22 +1239,42 @@
|
|||||||
# define __GNUC_STDC_INLINE__ 1
|
# define __GNUC_STDC_INLINE__ 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* _GL_CMP (n1, n2) performs a three-valued comparison on n1 vs. n2, where
|
||||||
|
n1 and n2 are expressions without side effects, that evaluate to real
|
||||||
|
numbers (excluding NaN).
|
||||||
|
It returns
|
||||||
|
1 if n1 > n2
|
||||||
|
0 if n1 == n2
|
||||||
|
-1 if n1 < n2
|
||||||
|
The naïve code (n1 > n2 ? 1 : n1 < n2 ? -1 : 0) produces a conditional
|
||||||
|
jump with nearly all GCC versions up to GCC 10.
|
||||||
|
This variant (n1 < n2 ? -1 : n1 > n2) produces a conditional with many
|
||||||
|
GCC versions up to GCC 9.
|
||||||
|
The better code (n1 > n2) - (n1 < n2) from Hacker's Delight § 2-9
|
||||||
|
avoids conditional jumps in all GCC versions >= 3.4. */
|
||||||
|
#define _GL_CMP(n1, n2) (((n1) > (n2)) - ((n1) < (n2)))
|
||||||
|
|
||||||
|
|
||||||
/* Define to `int' if <sys/types.h> does not define. */
|
/* Define to `int' if <sys/types.h> does not define. */
|
||||||
/* #undef mode_t */
|
/* #undef mode_t */
|
||||||
|
|
||||||
/* Define to `int' if <sys/types.h> does not define. */
|
/* Define to the type of st_nlink in struct stat, or a supertype. */
|
||||||
|
/* #undef nlink_t */
|
||||||
|
|
||||||
|
/* Define as a signed integer type capable of holding a process identifier. */
|
||||||
/* #undef pid_t */
|
/* #undef pid_t */
|
||||||
|
|
||||||
/* Define to the equivalent of the C99 'restrict' keyword, or to
|
/* Define to the equivalent of the C99 'restrict' keyword, or to
|
||||||
nothing if this is not supported. Do not define if restrict is
|
nothing if this is not supported. Do not define if restrict is
|
||||||
supported directly. */
|
supported only directly. */
|
||||||
#define restrict __restrict
|
#define restrict __restrict
|
||||||
/* Work around a bug in Sun C++: it does not support _Restrict or
|
/* Work around a bug in older versions of Sun C++, which did not
|
||||||
__restrict__, even though the corresponding Sun C compiler ends up with
|
#define __restrict__ or support _Restrict or __restrict__
|
||||||
"#define restrict _Restrict" or "#define restrict __restrict__" in the
|
even though the corresponding Sun C compiler ended up with
|
||||||
previous line. Perhaps some future version of Sun C++ will work with
|
"#define restrict _Restrict" or "#define restrict __restrict__"
|
||||||
restrict; if so, hopefully it defines __RESTRICT like Sun C does. */
|
in the previous line. This workaround can be removed once
|
||||||
#if defined __SUNPRO_CC && !defined __RESTRICT
|
we assume Oracle Developer Studio 12.5 (2016) or later. */
|
||||||
|
#if defined __SUNPRO_CC && !defined __RESTRICT && !defined __restrict__
|
||||||
# define _Restrict
|
# define _Restrict
|
||||||
# define __restrict__
|
# define __restrict__
|
||||||
#endif
|
#endif
|
||||||
@ -954,42 +1285,5 @@
|
|||||||
/* Define as a signed type of the same size as size_t. */
|
/* Define as a signed type of the same size as size_t. */
|
||||||
#define ssize_t intptr_t
|
#define ssize_t intptr_t
|
||||||
|
|
||||||
/* Define as a marker that can be attached to declarations that might not
|
|
||||||
be used. This helps to reduce warnings, such as from
|
|
||||||
GCC -Wunused-parameter. */
|
|
||||||
#if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
|
|
||||||
# define _GL_UNUSED __attribute__ ((__unused__))
|
|
||||||
#else
|
|
||||||
# define _GL_UNUSED
|
|
||||||
#endif
|
|
||||||
/* The name _UNUSED_PARAMETER_ is an earlier spelling, although the name
|
|
||||||
is a misnomer outside of parameter lists. */
|
|
||||||
#define _UNUSED_PARAMETER_ _GL_UNUSED
|
|
||||||
|
|
||||||
/* gcc supports the "unused" attribute on possibly unused labels, and
|
|
||||||
g++ has since version 4.5. Note to support C++ as well as C,
|
|
||||||
_GL_UNUSED_LABEL should be used with a trailing ; */
|
|
||||||
#if !defined __cplusplus || __GNUC__ > 4 \
|
|
||||||
|| (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
|
|
||||||
# define _GL_UNUSED_LABEL _GL_UNUSED
|
|
||||||
#else
|
|
||||||
# define _GL_UNUSED_LABEL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* The __pure__ attribute was added in gcc 2.96. */
|
|
||||||
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
|
|
||||||
# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
|
|
||||||
#else
|
|
||||||
# define _GL_ATTRIBUTE_PURE /* empty */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* The __const__ attribute was added in gcc 2.95. */
|
|
||||||
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
|
|
||||||
# define _GL_ATTRIBUTE_CONST __attribute__ ((__const__))
|
|
||||||
#else
|
|
||||||
# define _GL_ATTRIBUTE_CONST /* empty */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* Define as a macro for copying va_list variables. */
|
/* Define as a macro for copying va_list variables. */
|
||||||
/* #undef va_copy */
|
/* #undef va_copy */
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
set(IDN2_VERSION 2.3.0)
|
set(IDN2_VERSION 2.3.1)
|
||||||
set(IDN2_FILENAME libidn2-${IDN2_VERSION}.tar.gz)
|
set(IDN2_FILENAME libidn2-${IDN2_VERSION}.tar.gz)
|
||||||
|
|
||||||
vcpkg_download_distfile(ARCHIVE
|
vcpkg_download_distfile(ARCHIVE
|
||||||
URLS "https://ftp.gnu.org/gnu/libidn/${IDN2_FILENAME}" "https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/libidn/${IDN2_FILENAME}"
|
URLS "https://ftp.gnu.org/gnu/libidn/${IDN2_FILENAME}" "https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/libidn/${IDN2_FILENAME}"
|
||||||
FILENAME "${IDN2_FILENAME}"
|
FILENAME "${IDN2_FILENAME}"
|
||||||
SHA512 a2bf6d2249948bce14fbbc802f8af1c9b427fc9bf64203a2f3d7239d8e6061d0a8e7970a23e8e5889110a654a321e0504c7a6d049bb501e7f6a23d42b50b6187
|
SHA512 4d77a4a79e08a05e46fc14827f987b9e7645ebf5d0c0869eb96f9902c2f6b73ea69fd6f9f97b80a9f07cce84f7aa299834df91485d4e7c16500d31a4b9865fe4
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_extract_source_archive_ex(
|
vcpkg_extract_source_archive_ex(
|
||||||
@ -20,6 +20,7 @@ if (VCPKG_TARGET_IS_WINDOWS)
|
|||||||
set(HAVE_ALLOCA_H 0)
|
set(HAVE_ALLOCA_H 0)
|
||||||
|
|
||||||
configure_file("${CMAKE_CURRENT_LIST_DIR}/config.h" "${SOURCE_PATH}")
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/config.h" "${SOURCE_PATH}")
|
||||||
|
configure_file("${SOURCE_PATH}/gl/alloca.in.h" "${SOURCE_PATH}/gl/alloca.h")
|
||||||
|
|
||||||
function(simple_copy_template_header FILE_PATH BASE_NAME)
|
function(simple_copy_template_header FILE_PATH BASE_NAME)
|
||||||
if(NOT EXISTS "${FILE_PATH}/${BASE_NAME}.h" AND EXISTS "${FILE_PATH}/${BASE_NAME}.in.h")
|
if(NOT EXISTS "${FILE_PATH}/${BASE_NAME}.h" AND EXISTS "${FILE_PATH}/${BASE_NAME}.in.h")
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "libidn2",
|
"name": "libidn2",
|
||||||
"version": "2.3.0",
|
"version": "2.3.1",
|
||||||
"port-version": 5,
|
|
||||||
"description": "GNU Libidn is an implementation of the Stringprep, Punycode and IDNA 2003 specifications. Libidn's purpose is to encode and decode internationalized domain names.",
|
"description": "GNU Libidn is an implementation of the Stringprep, Punycode and IDNA 2003 specifications. Libidn's purpose is to encode and decode internationalized domain names.",
|
||||||
"homepage": "https://www.gnu.org/software/libidn/",
|
"homepage": "https://www.gnu.org/software/libidn/",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
|
@ -3593,8 +3593,8 @@
|
|||||||
"port-version": 0
|
"port-version": 0
|
||||||
},
|
},
|
||||||
"libidn2": {
|
"libidn2": {
|
||||||
"baseline": "2.3.0",
|
"baseline": "2.3.1",
|
||||||
"port-version": 5
|
"port-version": 0
|
||||||
},
|
},
|
||||||
"libigl": {
|
"libigl": {
|
||||||
"baseline": "2.3.0",
|
"baseline": "2.3.0",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "639f3ae3abc9b7265de12b29bfefb49a683e0b53",
|
||||||
|
"version": "2.3.1",
|
||||||
|
"port-version": 0
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "b1eb568bf3bdf3fdb6e04b69f62f0347f2dff2ed",
|
"git-tree": "b1eb568bf3bdf3fdb6e04b69f62f0347f2dff2ed",
|
||||||
"version": "2.3.0",
|
"version": "2.3.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user