1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-23 07:59:03 +00:00

Upgrade libpcre2 to 10.43

This commit is contained in:
dmiller
2024-02-28 16:06:30 +00:00
parent 38aa74ae83
commit 34da72b5f5
50 changed files with 20826 additions and 5158 deletions

View File

@@ -9,7 +9,7 @@ POSIX wrapper interface.
Written by Philip Hazel
Original API code Copyright (c) 1997-2012 University of Cambridge
New API code Copyright (c) 2016-2022 University of Cambridge
New API code Copyright (c) 2016-2023 University of Cambridge
-----------------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
@@ -40,6 +40,8 @@ POSSIBILITY OF SUCH DAMAGE.
-----------------------------------------------------------------------------
*/
#ifndef PCRE2POSIX_H_IDEMPOTENT_GUARD
#define PCRE2POSIX_H_IDEMPOTENT_GUARD
/* Have to include stdlib.h in order to ensure that size_t is defined. */
@@ -130,25 +132,24 @@ set, we ensure here that it has no effect. */
#define PCRE2_CALL_CONVENTION
#endif
#ifndef PCRE2_EXPORT
#define PCRE2_EXPORT
#endif
/* When an application links to a PCRE2 DLL in Windows, the symbols that are
imported have to be identified as such. When building PCRE2, the appropriate
export settings are needed, and are set in pcre2posix.c before including this
file. */
#if defined(_WIN32) && !defined(PCRE2_STATIC) && !defined(PCRE2POSIX_EXP_DECL)
# define PCRE2POSIX_EXP_DECL extern __declspec(dllimport)
# define PCRE2POSIX_EXP_DEFN __declspec(dllimport)
#endif
/* By default, we use the standard "extern" declarations. */
#ifndef PCRE2POSIX_EXP_DECL
# ifdef __cplusplus
# define PCRE2POSIX_EXP_DECL extern "C"
# define PCRE2POSIX_EXP_DEFN extern "C"
# if defined(_WIN32) && defined(PCRE2POSIX_SHARED) && !defined(PCRE2_STATIC)
# define PCRE2POSIX_EXP_DECL extern __declspec(dllimport)
# define PCRE2POSIX_EXP_DEFN __declspec(dllimport)
# else
# define PCRE2POSIX_EXP_DECL extern
# define PCRE2POSIX_EXP_DEFN extern
# define PCRE2POSIX_EXP_DECL extern PCRE2_EXPORT
# define PCRE2POSIX_EXP_DEFN
# endif
#endif
@@ -181,4 +182,6 @@ them having to maintain their own patch, but are not documented by PCRE2. */
} /* extern "C" */
#endif
#endif /* PCRE2POSIX_H_IDEMPOTENT_GUARD */
/* End of pcre2posix.h */