mingw: workaround weird openssl build failure

If X509_NAME isn't undefined before including x509v3.h, very
weird compilation error occurs. It seems to be caused by duplicate
definitions for this symbols coming from wincrypto.h
This commit is contained in:
Christophe Fergeau 2012-02-29 19:01:59 +01:00 committed by Alon Levy
parent 0f94e897b5
commit 735f8e2837

View File

@ -29,6 +29,7 @@
#include <openssl/x509.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#undef X509_NAME
#include <openssl/x509v3.h>
#ifdef __cplusplus