openssl: compile problem in current trunk
Hi guys,
in the current trunk version I get a compile error in pkcs7.h file saying:
openssl/pkcs7.h:38:5: error: expected ')' before numeric constant
X509_NAME *issuer;
^
This happens with gcc and also with VS.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 44 (22 by maintainers)
This should now be fixed, but was implemented in a different way. After some internal debate it was decided that including windows.h in our public header files was probably a bad idea. Apps developers may want more control over when windows.h is included (or even if it is included at all). Therefore we have removed windows.h from all our public headers altogether (in 1.1.0). This does have some knock on impacts - notably that if you want to use any of the CRYPTO_THREAD_* functions or you want to use any of the async.h functions that use the OSSL_ASYNC_FD type then you should include windows.h before any openssl headers.
Closing this ticket.
Sounds great! Please let me know when it is available.
In the header file ossl_typ.h I made the change
and this will fix the issue.
You mean you use mingw/msys? Please provide your Configure line.
Try adding
–DOPENSSL_SYS_WIN32to the configure line and see if that works. Normally the flag is set only when using VC.