]> git.wh0rd.org - fontconfig.git/blobdiff - src/fcint.h
Move up #include of config.h. Fail if neither inttypes.h nor stdint.h is
[fontconfig.git] / src / fcint.h
index 84df88de225986bb96803ffc527b63e6dd0b13a3..0a036b4f864a9f52fd3abb3d9966ba1605e26d08 100644 (file)
 #ifndef _FCINT_H_
 #define _FCINT_H_
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdlib.h>
 #include <stdio.h>
 #ifdef HAVE_INTTYPES_H
 #include <inttypes.h>
-#else
+#elif defined(HAVE_STDINT_H)
 #include <stdint.h>
+#else
+#error missing C99 integer data types
 #endif
 #include <string.h>
 #include <ctype.h>
@@ -42,9 +48,6 @@
 #include <fontconfig/fontconfig.h>
 #include <fontconfig/fcprivate.h>
 #include <fontconfig/fcfreetype.h>
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
 
 #ifndef FC_CONFIG_PATH
 #define FC_CONFIG_PATH "fonts.conf"