]> git.ipfire.org Git - thirdparty/openssl.git/commit - test/build.info
Move types.h #undefs for wincrypt.h compatibility
authorSamuel Lee <saml@microsoft.com>
Mon, 11 Apr 2022 14:36:16 +0000 (15:36 +0100)
committerDr. Matthias St. Pierre <matthias.st.pierre@ncp-e.com>
Mon, 30 May 2022 05:19:14 +0000 (07:19 +0200)
commit3c58d447497b37f7b4f458aaa2956a7e226c6d65
treed98a4700969e04bb35226e9a5b96ff83ede0fc10
parent128d1c3c0a12fe68175a460e06daf1e0d940f681
Move types.h #undefs for wincrypt.h compatibility

+ Always undef the symbols that may have been #define-d
  by wincrypt.h after the first inclusion of types.h to
  avoid errors from wincrypt.h symbols being used to
  compile OpenSSL code
+ Also need to remove #pragma once for this approach to work
+ Define WINCRYPT_USE_SYMBOL_PREFIX to enable wincrypt
  symbol prefix at some point in future

Fixes #9981

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/18131)
include/openssl/types.h
test/build.info
test/build_wincrypt_test.c [new file with mode: 0644]