X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=util%2Fmkerr.pl;h=6004853bc166ef1614e8cf26b7339711ccd42751;hb=8b99c79fae22f93319443d0bec7068dbc6dca968;hp=66b8df35b52b4134bfb02d597d824b1303548d2f;hpb=f3d2a9db09cd7df736229710cb4c75f8906eeb4e;p=oweals%2Fopenssl.git diff --git a/util/mkerr.pl b/util/mkerr.pl index 66b8df35b5..6004853bc1 100644 --- a/util/mkerr.pl +++ b/util/mkerr.pl @@ -321,7 +321,7 @@ foreach $lib (keys %csrc) } else { push @out, "/* ====================================================================\n", -" * Copyright (c) 2001-2007 The OpenSSL Project. All rights reserved.\n", +" * Copyright (c) 2001-2008 The OpenSSL Project. All rights reserved.\n", " *\n", " * Redistribution and use in source and binary forms, with or without\n", " * modification, are permitted provided that the following conditions\n", @@ -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";