aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray2004-08-08 03:12:23 +0000
committerJonathan Gray2004-08-08 03:12:23 +0000
commitf3ddfd4080bee44d23b6bdbb0e32a5c151e83383 (patch)
tree32ae5a687bd2c9a58918d6e306b18938942630b4
parent0a89fea43b6c4a38fd4317c6a2eda01c0f8df03a (diff)
downloadscummvm-rg350-f3ddfd4080bee44d23b6bdbb0e32a5c151e83383.tar.gz
scummvm-rg350-f3ddfd4080bee44d23b6bdbb0e32a5c151e83383.tar.bz2
scummvm-rg350-f3ddfd4080bee44d23b6bdbb0e32a5c151e83383.zip
fix compilation
svn-id: r14510
-rw-r--r--common/scaler/scalebit.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/scaler/scalebit.cpp b/common/scaler/scalebit.cpp
index 9c697df774..4bb5e0a816 100644
--- a/common/scaler/scalebit.cpp
+++ b/common/scaler/scalebit.cpp
@@ -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 @@ static void scale4x(void* void_dst, unsigned dst_slice, const void* void_src, un
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 @@ static void scale4x(void* void_dst, unsigned dst_slice, const void* void_src, un
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
}