Skip to content

Commit 3f05f72

Browse files
authored
Prefer PCRE2POSIX_SHARED to PCRE2_STATIC for pcre2posix (#310)
Since a8a875e (windows: integrate visibility attributes without conflicts (#249), 2023-05-16), the use of PCRE2_STATIC has been deprecated so set PCRE2POSIX_SHARED instead when relevant.
1 parent 1e146e7 commit 3f05f72

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pcre2-config.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ while test $# -gt 0; do
7979
if test @includedir@ != /usr/include ; then
8080
includes=-I@includedir@
8181
fi
82-
echo $includes @PCRE2_STATIC_CFLAG@
82+
echo $includes @PCRE2POSIX_CFLAG@
8383
else
8484
echo "${usage}" 1>&2
8585
fi

src/pcre2posix.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ POSIX wrapper interface.
99
1010
Written by Philip Hazel
1111
Original API code Copyright (c) 1997-2012 University of Cambridge
12-
New API code Copyright (c) 2016-2022 University of Cambridge
12+
New API code Copyright (c) 2016-2023 University of Cambridge
1313
1414
-----------------------------------------------------------------------------
1515
Redistribution and use in source and binary forms, with or without
@@ -132,7 +132,6 @@ set, we ensure here that it has no effect. */
132132
#define PCRE2_CALL_CONVENTION
133133
#endif
134134

135-
136135
#ifndef PCRE2_EXPORT
137136
#define PCRE2_EXPORT
138137
#endif

0 commit comments

Comments
 (0)