summaryrefslogtreecommitdiffstats
path: root/ms/applink.c
diff options
context:
space:
mode:
authorTanzinul Islam <tanzinul.islam@gmail.com>2020-12-13 18:04:43 +0000
committerDmitry Belyavskiy <beldmit@gmail.com>2021-04-19 11:05:55 +0200
commitdaf98015aac8bf392cf95edf9a54d845c1c22fd7 (patch)
tree41115c55897351b29f572e0132a5cfaa83f8cb68 /ms/applink.c
parent491a1e3363228e8276ee293a86acd7a961ffe9d3 (diff)
Link with uplink module
The Clang-based `bcc32c.exe` expects AT&T syntax for inline assembly. References: - http://docwiki.embarcadero.com/RADStudio/Sydney/en/Differences_Between_Clang-enhanced_C%2B%2B_Compilers_and_Previous-Generation_C%2B%2B_Compilers#Inline_Assembly - https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html - https://sourceware.org/binutils/docs/as/i386_002dVariations.html Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/13540)
Diffstat (limited to 'ms/applink.c')
-rw-r--r--ms/applink.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ms/applink.c b/ms/applink.c
index d19966a33e..2cf3a92f18 100644
--- a/ms/applink.c
+++ b/ms/applink.c
@@ -38,6 +38,12 @@
# include <io.h>
# include <fcntl.h>
+# ifdef __BORLANDC__
+ /* _lseek in <io.h> is a function-like macro so we can't take its address */
+# undef _lseek
+# define _lseek lseek
+# endif
+
static void *app_stdin(void)
{
return stdin;