Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 81c95449749469480f0124a1416f22b4ecc67584
      
https://github.com/tianocore/edk2/commit/81c95449749469480f0124a1416f22b4ecc67584
  Author: Michael D Kinney <[email protected]>
  Date:   2026-01-05 (Mon, 05 Jan 2026)

  Changed paths:
    M CryptoPkg/Library/OpensslLib/OpensslLib.inf
    M CryptoPkg/Library/OpensslLib/OpensslLibAccel.inf
    M CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
    M CryptoPkg/Library/OpensslLib/OpensslLibFull.inf
    M CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf

  Log Message:
  -----------
  CryptoPkg/Library/OpensslLib: Add -UWIN32 to GCC Family

Undefine WIN32 for GCC family compilers in OpensslLib INF
files to remove use of GetLastError() and SetLastError()
in OpensslLib builds.

Mingw CLANG compilers have a builtin define called WIN32.
When building OpensslLib, this define causes the Windows
APIs GetLastError() and SetLastError() to be referenced
which causes compilers warnings for undefined functions.
Mingw CLANG NOOPT builds generate link errors not finding
GetLastError() and SetLastError().

The MSFT family compilers do not define WIN32. As a result,
this issue is not observed with VS20xx tool chains. Removing
the WIN32 define aligns the GCC family with the MSFT family.

Signed-off-by: Michael D Kinney <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to