From 69ec314fb56c2a7e21fde82a0621d8af35d593b2 Mon Sep 17 00:00:00 2001 From: DRC Date: Thu, 18 Feb 2010 13:14:29 +0000 Subject: [PATCH] MinGW64 requires that the functions be prefixed with an underscore. Visual C++ apparently doesn't --- simd/jsimdext.inc | 4 +++- win/Makerules | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/simd/jsimdext.inc b/simd/jsimdext.inc index d371a524..d0b47e63 100644 --- a/simd/jsimdext.inc +++ b/simd/jsimdext.inc @@ -47,7 +47,9 @@ ; %define SEG_TEXT .text align=16 public use64 class=CODE %define SEG_CONST .rdata align=16 public use64 class=CONST -;%define EXTN(name) name ; foo() -> foo +%ifdef MSVC +%define EXTN(name) name ; foo() -> foo +%endif %elifdef OBJ32 ; ----(nasm -fobj -DOBJ32 ...)---------- ; * Borland C++ (Win32) diff --git a/win/Makerules b/win/Makerules index 12e96fec..59a7d3aa 100755 --- a/win/Makerules +++ b/win/Makerules @@ -30,9 +30,9 @@ endif CFLAGS = -W3 -wd4996 -Iwin -I. CDEFINES = -DWIN32 -D_CRT_SECURE_NO_DEPRECATE ifeq ($(WIN64), yes) -NAFLAGS = -fwin64 -DWIN64 -D__x86_64__ -Iwin/ +NAFLAGS = -fwin64 -DWIN64 -DMSVC -D__x86_64__ -Iwin/ else -NAFLAGS = -fwin32 -DWIN32 -Iwin/ +NAFLAGS = -fwin32 -DWIN32 -DMSVC -Iwin/ endif ifeq ($(DEBUG), yes) CFLAGS := $(CFLAGS) -Od -MTd -Zi