diff src/video/SDL_stretch.c @ 1442:e3242177fe4a

Updated OS/2 build, yay!
author Sam Lantinga <slouken@libsdl.org>
date Sun, 26 Feb 2006 19:30:21 +0000
parents d910939febfa
children 782fd950bd46 b5a4ac87b98c
line wrap: on
line diff
--- a/src/video/SDL_stretch.c	Sun Feb 26 13:42:00 2006 +0000
+++ b/src/video/SDL_stretch.c	Sun Feb 26 19:30:21 2006 +0000
@@ -35,6 +35,7 @@
 */
 
 #if ((defined(_MFC_VER) && defined(_M_IX86)/* && !defined(_WIN32_WCE) still needed? */) || \
+     defined(__WATCOMC__) || \
      (defined(__GNUC__) && defined(__i386__))) && SDL_ASSEMBLY_ROUTINES
 #define USE_ASM_STRETCH
 #endif
@@ -281,8 +282,7 @@
 			: "=&D" (u1), "=&S" (u2)
 			: "0" (dstp), "1" (srcp), "r" (copy_row)
 			: "memory" );
-#else
-#ifdef _MSC_VER
+#elif defined(_MSC_VER) || defined(__WATCOMC__)
 		{ void *code = copy_row;
 			__asm {
 				push edi
@@ -299,7 +299,6 @@
 #else
 #error Need inline assembly for this compiler
 #endif
-#endif /* __GNUC__ */
 			break;
 		}
 #else