Hi, all.

Undef X509_NAME in x509_v3.h with the same codes in x509.h.

The following header file arrangement will make program fail to build with
MinGW:

#include <openssl/x509.h>
#include <windows.h>  // Or any other header file that #define X509_NAME
#include <openssl/x509v3.h>

int main(int argc, char *argv[]) {
    return 0;
}


Undef X509_NAME again explicitly in x509_v3.h will make it compile.


Regards,
robin

Attachment: OpenSSL_undef_X509_NAME_also_in_x509v3_h.diff
Description: Binary data

Reply via email to