From 27946f1e86d0deeea46b167bf49f950a61965875 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Sat, 18 Sep 2004 10:25:49 +0000 Subject: fixed msvc compilation for __restrict__ svn-id: r15160 --- common/scaler/scale2x.h | 4 ++++ common/scaler/scale3x.h | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'common') 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; -- cgit v1.2.3