]> granicus.if.org Git - libjpeg-turbo/commitdiff
MinGW64 requires that the functions be prefixed with an underscore. Visual C++ appar...
authorDRC <dcommander@users.sourceforge.net>
Thu, 18 Feb 2010 13:14:29 +0000 (13:14 +0000)
committerDRC <dcommander@users.sourceforge.net>
Thu, 18 Feb 2010 13:14:29 +0000 (13:14 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@125 632fc199-4ca6-4c93-a231-07263d6284db

simd/jsimdext.inc
win/Makerules

index d371a5246eabceee809b3711c66ebeec3294be08..d0b47e6393820673990a7ddcf26753dd4bbbad49 100644 (file)
@@ -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)
index 12e96fec77268b705e68e87f02aca43d15e0e05f..59a7d3aa82656c5ca6198e652f25a73e831751c3 100755 (executable)
@@ -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