shithub: libvpx

Download patch

ref: c87f32c7fd1e6ecfc834171df12d7c05cf877a68
parent: 4a296e6baa1fc2faf9dfcb9b8611fd73bad2c004
author: James Zern <jzern@google.com>
date: Tue Sep 30 12:06:23 EDT 2014

vpx_integer.h: define __STDC_LIMIT_MACROS

fixes --enable-coefficient-range-checking --enable-debug
vp9_idct.h has references to INT16_MIN/MAX; this header is included in
c++ source so needs to request the macros

Change-Id: I2e643eb973c2d84729fa3cf2f4c4d8bf65cfdff0

--- a/vpx/vpx_integer.h
+++ b/vpx/vpx_integer.h
@@ -49,9 +49,15 @@
 
 /* Most platforms have the C99 standard integer types. */
 
-#if defined(__cplusplus) && !defined(__STDC_FORMAT_MACROS)
-#define __STDC_FORMAT_MACROS
-#endif
+#if defined(__cplusplus)
+# if !defined(__STDC_FORMAT_MACROS)
+#  define __STDC_FORMAT_MACROS
+# endif
+# if !defined(__STDC_LIMIT_MACROS)
+#  define __STDC_LIMIT_MACROS
+# endif
+#endif  // __cplusplus
+
 #include <stdint.h>
 
 #endif