Ticket #8845: nasm.diff

File nasm.diff, 1.6 KB (added by SF/lvzuufx, 12 years ago)

patch for nasm usage on OS/2

Line 
1--- configure.org 2007-08-04 11:57:26.000000000 +0900
2+++ configure 2008-03-23 12:23:30.000000000 +0900
3@@ -255,8 +255,8 @@
4 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$SEPARATOR
5
6 for path_dir in $_nasmpath; do
7- if test -x "$path_dir/nasm" ; then
8- NASM="$path_dir/nasm"
9+ if test -x "$path_dir/nasm$EXEEXT" ; then
10+ NASM="$path_dir/nasm$EXEEXT"
11 echo $NASM
12 break
13 fi
14@@ -269,6 +269,9 @@
15 _nasm=no
16 else
17 case $_host_os in
18+ os2-emx*)
19+ NASMFLAGS="-f aout"
20+ ;;
21 mingw* | cygwin*)
22 NASMFLAGS="-f win32"
23 ;;
24--- graphics\scaler.cpp.org 2007-08-04 11:40:16.000000000 +0900
25+++ graphics\scaler.cpp 2008-03-23 12:23:58.000000000 +0900
26@@ -38,7 +38,7 @@
27 // NOTE: if your compiler uses different mangled names, add another
28 // condition here
29
30-#if !defined(_WIN32) && !defined(MACOSX)
31+#if !defined(_WIN32) && !defined(MACOSX) && !defined(__OS2__)
32 #define RGBtoYUV _RGBtoYUV
33 #define LUT16to32 _LUT16to32
34 #endif
35--- graphics\scaler\hq2x.cpp.org 2007-08-04 11:40:10.000000000 +0900
36+++ graphics\scaler\hq2x.cpp 2008-03-23 12:24:30.000000000 +0900
37@@ -30,7 +30,7 @@
38
39 extern "C" {
40
41-#if !defined(_WIN32) && !defined(MACOSX)
42+#if !defined(_WIN32) && !defined(MACOSX) && !defined(__OS2__)
43 #define hq2x_16 _hq2x_16
44 #endif
45
46--- graphics\scaler\hq3x.cpp.org 2007-08-04 11:40:10.000000000 +0900
47+++ graphics\scaler\hq3x.cpp 2008-03-23 12:24:28.000000000 +0900
48@@ -30,7 +30,7 @@
49
50 extern "C" {
51
52-#if !defined(_WIN32) && !defined(MACOSX)
53+#if !defined(_WIN32) && !defined(MACOSX) && !defined(__OS2__)
54 #define hq3x_16 _hq3x_16
55 #endif