Apply mingw patches as supplied by Roumen Petrov an Alon Bar-Lev
[openssl.git] / util / mkerr.pl
index aac87bbf3b8f8186426edb654b9ffb9dcd44fa81..6004853bc166ef1614e8cf26b7339711ccd42751 100644 (file)
@@ -377,6 +377,10 @@ foreach $lib (keys %csrc)
 "#ifndef HEADER_${lib}_ERR_H\n",
 "#define HEADER_${lib}_ERR_H\n",
 "\n",
+"#ifdef  __cplusplus\n",
+"extern \"C\" {\n",
+"#endif\n",
+"\n",
 "/* BEGIN ERROR CODES */\n";
        }
        open (OUT, ">$hfile") || die "Can't Open File $hfile for writing\n";