[Scummvm-cvs-logs] CVS: scummvm/common/scaler scalebit.cpp,1.4,1.5
Jonathan Gray
khalek at users.sourceforge.net
Sat Aug 7 20:16:05 CEST 2004
Update of /cvsroot/scummvm/scummvm/common/scaler
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7433
Modified Files:
scalebit.cpp
Log Message:
fix compilation
Index: scalebit.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/scaler/scalebit.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- scalebit.cpp 7 Aug 2004 23:49:34 -0000 1.4
+++ scalebit.cpp 8 Aug 2004 03:12:23 -0000 1.5
@@ -33,14 +33,14 @@
* - derivative works of the program are allowed.
*/
-#if HAVE_CONFIG_H
+#if defined(HAVE_CONFIG_H)
#include <config.h>
#endif
#include "scale2x.h"
#include "scale3x.h"
-#if HAVE_ALLOCA_H
+#if defined(HAVE_ALLOCA_H)
#include <alloca.h>
#endif
@@ -256,7 +256,7 @@
mid_slice = (mid_slice + 0x7) & ~0x7; /* align to 8 bytes */
-#if HAVE_ALLOCA
+#if defined(HAVE_ALLOCA)
mid = alloca(6 * mid_slice); /* allocate space for 6 row buffers */
assert(mid != 0); /* alloca should never fails */
@@ -269,7 +269,7 @@
scale4x_buf(void_dst, dst_slice, mid, mid_slice, void_src, src_slice, pixel, width, height);
-#if !HAVE_ALLOCA
+#if !defined(HAVE_ALLOCA)
free(mid);
#endif
}
More information about the Scummvm-git-logs
mailing list