MinGW64 requires that the functions be prefixed with an underscore. Visual C++ apparently doesn't

This commit is contained in:
DRC
2010-02-18 13:14:29 +00:00
parent b50c3ca33f
commit 69ec314fb5
2 changed files with 5 additions and 3 deletions

View File

@@ -47,7 +47,9 @@
; ;
%define SEG_TEXT .text align=16 public use64 class=CODE %define SEG_TEXT .text align=16 public use64 class=CODE
%define SEG_CONST .rdata align=16 public use64 class=CONST %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 ...)---------- %elifdef OBJ32 ; ----(nasm -fobj -DOBJ32 ...)----------
; * Borland C++ (Win32) ; * Borland C++ (Win32)

View File

@@ -30,9 +30,9 @@ endif
CFLAGS = -W3 -wd4996 -Iwin -I. CFLAGS = -W3 -wd4996 -Iwin -I.
CDEFINES = -DWIN32 -D_CRT_SECURE_NO_DEPRECATE CDEFINES = -DWIN32 -D_CRT_SECURE_NO_DEPRECATE
ifeq ($(WIN64), yes) ifeq ($(WIN64), yes)
NAFLAGS = -fwin64 -DWIN64 -D__x86_64__ -Iwin/ NAFLAGS = -fwin64 -DWIN64 -DMSVC -D__x86_64__ -Iwin/
else else
NAFLAGS = -fwin32 -DWIN32 -Iwin/ NAFLAGS = -fwin32 -DWIN32 -DMSVC -Iwin/
endif endif
ifeq ($(DEBUG), yes) ifeq ($(DEBUG), yes)
CFLAGS := $(CFLAGS) -Od -MTd -Zi CFLAGS := $(CFLAGS) -Od -MTd -Zi