From: Eric Petit Date: Mon, 29 Aug 2005 11:20:23 +0000 (+0000) Subject: x264.h: issue an explicit warning when neither stdint.h nor inttypes.h X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=2a6e7a685391f4ae465c79111583c91fb26cb5a8;p=x264.git x264.h: issue an explicit warning when neither stdint.h nor inttypes.h has be included before x264.h git-svn-id: svn://svn.videolan.org/x264/trunk@288 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/x264.h b/x264.h index d695ef79..d8affed9 100644 --- a/x264.h +++ b/x264.h @@ -24,6 +24,11 @@ #ifndef _X264_H #define _X264_H 1 +#if !defined(_STDINT_H) && !defined(_STDINT_H_) && \ + !defined(_INTTYPES_H) && !defined(_INTTYPES_H_) +#warning You must include stdint.h or inttypes.h before x264.h +#endif + #include #define X264_BUILD 34