]> granicus.if.org Git - libx264/commitdiff
x264.h: issue an explicit warning when neither stdint.h nor inttypes.h
authorEric Petit <titer@videolan.org>
Mon, 29 Aug 2005 11:20:23 +0000 (11:20 +0000)
committerEric Petit <titer@videolan.org>
Mon, 29 Aug 2005 11:20:23 +0000 (11:20 +0000)
 has be included before x264.h

git-svn-id: svn://svn.videolan.org/x264/trunk@288 df754926-b1dd-0310-bc7b-ec298dee348c

x264.h

diff --git a/x264.h b/x264.h
index d695ef796edee44ebec1ae4579aaf86f089e4939..d8affed93b9ddab04ca3fd55e110160a6a3d3919 100644 (file)
--- a/x264.h
+++ b/x264.h
 #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 <stdarg.h>
 
 #define X264_BUILD 34