diff options
author | Richard Levitte <levitte@openssl.org> | 2021-12-06 21:06:06 +0100 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2021-12-10 12:08:48 +0100 |
commit | 7a2ad00f3ecffa6be350e9e72992d4ec003f54ae (patch) | |
tree | e14f3c4a09ffbc47dc8b0a957f414be06a8cc57d | |
parent | d977a26ed8ca5066d4d72a6d73f1669c8619f4a1 (diff) | |
download | openssl-new-7a2ad00f3ecffa6be350e9e72992d4ec003f54ae.tar.gz |
Teach OpenSSL::ParseC about OPENSSL_EXPORT and OPENSSL_EXTERN
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17215)
-rw-r--r-- | util/perl/OpenSSL/ParseC.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/perl/OpenSSL/ParseC.pm b/util/perl/OpenSSL/ParseC.pm index ee127e88c8..e3cfe07827 100644 --- a/util/perl/OpenSSL/ParseC.pm +++ b/util/perl/OpenSSL/ParseC.pm @@ -610,6 +610,12 @@ EOF }, }, + # OpenSSL's declaration of externs with possible export linkage + # (really only relevant on Windows) + { regexp => qr/OPENSSL_(?:EXPORT|EXTERN)/, + massager => sub { return ("extern"); } + }, + # Spurious stuff found in the OpenSSL headers # Usually, these are just macros that expand to, well, something { regexp => qr/__NDK_FPABI__/, |