aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2004-09-18 10:25:49 +0000
committerPaweł Kołodziejski2004-09-18 10:25:49 +0000
commit27946f1e86d0deeea46b167bf49f950a61965875 (patch)
treedf2f07d32666442027428ae2763dbad9753a10d2
parentaf77554dc3c7f29380462bdca57068eb3bccd454 (diff)
downloadscummvm-rg350-27946f1e86d0deeea46b167bf49f950a61965875.tar.gz
scummvm-rg350-27946f1e86d0deeea46b167bf49f950a61965875.tar.bz2
scummvm-rg350-27946f1e86d0deeea46b167bf49f950a61965875.zip
fixed msvc compilation for __restrict__
svn-id: r15160
-rw-r--r--common/scaler/scale2x.h4
-rw-r--r--common/scaler/scale3x.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/common/scaler/scale2x.h b/common/scaler/scale2x.h
index 54bfac5b8f..2101790905 100644
--- a/common/scaler/scale2x.h
+++ b/common/scaler/scale2x.h
@@ -21,6 +21,10 @@
#ifndef __SCALE2X_H
#define __SCALE2X_H
+#if defined(_MSC_VER)
+#define __restrict__
+#endif
+
typedef unsigned char scale2x_uint8;
typedef unsigned short scale2x_uint16;
typedef unsigned scale2x_uint32;
diff --git a/common/scaler/scale3x.h b/common/scaler/scale3x.h
index 14655d00fa..3f24d884e1 100644
--- a/common/scaler/scale3x.h
+++ b/common/scaler/scale3x.h
@@ -21,6 +21,10 @@
#ifndef __SCALE3X_H
#define __SCALE3X_H
+#if defined(_MSC_VER)
+#define __restrict__
+#endif
+
typedef unsigned char scale3x_uint8;
typedef unsigned short scale3x_uint16;
typedef unsigned scale3x_uint32;