X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=ms%2Fapplink.c;h=d19966a33ed8cdcaad52e473401be2195b543258;hp=c844b01887d0395d36557e525d84da8c73f1340b;hb=2fce15b58b2502a614529707eb45b6e5cac4eb15;hpb=c3ddb263315c7196b488f384b3bc82cd474c8698 diff --git a/ms/applink.c b/ms/applink.c index c844b01887..d19966a33e 100644 --- a/ms/applink.c +++ b/ms/applink.c @@ -1,3 +1,12 @@ +/* + * Copyright 2004-2016 The OpenSSL Project Authors. All Rights Reserved. + * + * Licensed under the Apache License 2.0 (the "License"). You may not use + * this file except in compliance with the License. You can obtain a copy + * in the file LICENSE in the source distribution or at + * https://www.openssl.org/source/license.html + */ + #define APPLINK_STDIN 1 #define APPLINK_STDOUT 2 #define APPLINK_STDERR 3 @@ -75,7 +84,16 @@ extern "C" { __declspec(dllexport) void ** - __cdecl +# if defined(__BORLANDC__) +/* + * __stdcall appears to be the only way to get the name + * decoration right with Borland C. Otherwise it works + * purely incidentally, as we pass no parameters. + */ +__stdcall +# else +__cdecl +# endif OPENSSL_Applink(void) { static int once = 1;