Teach OpenSSL::ParseC about OPENSSL_EXPORT and OPENSSL_EXTERN
authorRichard Levitte <levitte@openssl.org>
Mon, 6 Dec 2021 20:06:06 +0000 (21:06 +0100)
committerDmitry Belyavskiy <beldmit@gmail.com>
Fri, 10 Dec 2021 11:08:48 +0000 (12:08 +0100)
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17215)

util/perl/OpenSSL/ParseC.pm

index ee127e88c80f1967515dcf82cc164596550f9719..e3cfe07827631816ced946a01216e6e0bbf4e471 100644 (file)
@@ -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__/,