Document OPENSSL_VERSION_TEXT macro
[openssl.git] / ms / applink.c
index c844b01887d0395d36557e525d84da8c73f1340b..238dbff35bd56f48f94b87c78ef91ed8578d0727 100644 (file)
@@ -1,3 +1,12 @@
+/*
+ * Copyright 2004-2016 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the OpenSSL license (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
 #define APPLINK_STDIN   1
 #define APPLINK_STDOUT  2
 #define APPLINK_STDERR  3
@@ -75,7 +84,16 @@ extern "C" {
 
 __declspec(dllexport)
 void **
 
 __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;
 OPENSSL_Applink(void)
 {
     static int once = 1;