From: Reynaldo H. Verdejo Pinochet Date: Wed, 4 Jan 2012 16:16:12 +0000 (-0300) Subject: Fix wrong conditional inclusion of inttypes.h X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=c0d698859c36be611d465f968762f042853be817;p=x264.git Fix wrong conditional inclusion of inttypes.h inttypes.h is required by encoder/ratecontrol.c for SCNxxx macros, and HAVE_STDINT_H does not imply having inttypes.h. stdint.h is a subset of inttypes.h, but this isn't enough for x264. This change fixes building x264 with Android's toolchain. --- diff --git a/common/osdep.h b/common/osdep.h index dbb0937f..a55b69d1 100644 --- a/common/osdep.h +++ b/common/osdep.h @@ -31,15 +31,10 @@ #define _FILE_OFFSET_BITS 64 #include #include +#include #include "config.h" -#if HAVE_STDINT_H -#include -#else -#include -#endif - #if !HAVE_LOG2F #define log2f(x) (logf(x)/0.693147180559945f) #define log2(x) (log(x)/0.693147180559945)