From 2e529ded9c0d777eea64ee9d10440e1f9bae4c1c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 22 Oct 2012 21:57:01 +0200 Subject: [PATCH] (Libretro) Maintenance update --- libretro/libretro.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libretro/libretro.h b/libretro/libretro.h index 57d12a46..3eef7588 100755 --- a/libretro/libretro.h +++ b/libretro/libretro.h @@ -3,6 +3,7 @@ #include #include +#include // Hack applied for MSVC when compiling in C89 mode as it isn't C99 compliant. #ifdef __cplusplus @@ -380,7 +381,10 @@ enum retro_pixel_format // RGB565, native endian. This pixel format is the recommended format to use if a 15/16-bit format is desired // as it is the pixel format that is typically available on a wide range of low-power devices. // It is also natively supported in APIs like OpenGL ES. - RETRO_PIXEL_FORMAT_RGB565 = 2 + RETRO_PIXEL_FORMAT_RGB565 = 2, + + // Ensure sizeof() == sizeof(int). + RETRO_PIXEL_FORMAT_UNKNOWN = INT_MAX }; struct retro_message