diff --git a/common/scaler/scale2x.h b/common/scaler/scale2x.h index 54bfac5b8fc..21017909052 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 14655d00fab..3f24d884e10 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;