{"author":"Viktor Szakats","author_email":"commit@vsz.me","author_time":1739064907,"commit_time":1739105402,"committer":"Viktor Szakats","committer_email":"commit@vsz.me","hash":"e6ea56b9d951c0ce614a4d3b51c39957c2acb7ed","message":"lib: silence LibreSSL collision warning on non-MSVC Windows\n\nLibreSSL headers emit this warning because we included `wincrypt.h`\nbefore them. We have to include `wincrypt.h` before OpenSSL headers\nto avoid symbol collisions when using other forks. LibreSSL 3.8.2+\noffers a macro to silence its warnings to avoid this issue. This patch\nsets it.\n\nThis allows to stop setting this macro in curl-for-win builds.\n\nWarnings seen with MinGW with cmake non-unity (also unity batch=30):\n```\n[156/219] Building C object lib/CMakeFiles/libcurl_object.dir/vtls/openssl.c.obj\nIn file included from lib/vtls/openssl.h:35,\n                 from lib/vtls/openssl.c:53:\ndep/libressl-win-x64/include/openssl/ossl_typ.h:90:2: warning: #warning overriding WinCrypt defines [-Wcpp]\n   90 | #warning overriding WinCrypt defines\n      |  ^~~~~~~\nIn file included from dep/libressl-win-x64/include/openssl/pem.h:71,\n                 from dep/libressl-win-x64/include/openssl/ssl.h:151,\n                 from lib/vtls/openssl.h:36:\ndep/libressl-win-x64/include/openssl/x509.h:108:2: warning: #warning overriding WinCrypt defines [-Wcpp]\n  108 | #warning overriding WinCrypt defines\n      |  ^~~~~~~\nIn file included from dep/libressl-win-x64/include/openssl/x509.h:319:\ndep/libressl-win-x64/include/openssl/pkcs7.h:77:2: warning: #warning overriding WinCrypt defines [-Wcpp]\n   77 | #warning overriding WinCrypt defines\n      |  ^~~~~~~\n```\n\nRef: https://github.com/libressl/portable/issues/910\nRef: https://github.com/libressl/portable/pull/924\nRef: https://github.com/libressl/portable/commit/e7fe6caab2869a043514c297ce04e6995a65d79f\nRef: https://github.com/curl/curl-for-win/commit/760ccfcc9114dbb6d79710a5582323be0f152c9e\n\nCloses #16273\n","parents":["89ed161f567295810661c946096144411603cb98"],"tree_hash":"b1032007e44999e31c62d50e48f8ebc2d6d35384"}