summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2017-02-10 18:19:34 +0000
committerChristos Zoulas <christos@zoulas.com>2017-02-10 18:19:34 +0000
commit5e0901bdc7fdc4ce164ba5cea5df3f251e04cd6b (patch)
treeee88f97ce064280fc0d47e58e237dc1c9b5801cb
parent09c12ff0b54d493a4a823fa2836fdf286f991b95 (diff)
downloadfile-git-5e0901bdc7fdc4ce164ba5cea5df3f251e04cd6b.tar.gz
define __STDC_LIMIT_MACROS sooner
-rw-r--r--src/file.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/file.h b/src/file.h
index 180efd35..f5128e46 100644
--- a/src/file.h
+++ b/src/file.h
@@ -27,7 +27,7 @@
*/
/*
* file.h - definitions for file(1) program
- * @(#)$File: file.h,v 1.180 2016/07/20 11:27:08 christos Exp $
+ * @(#)$File: file.h,v 1.181 2017/02/10 18:19:34 christos Exp $
*/
#ifndef __file_h__
@@ -36,6 +36,10 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
+#ifdef HAVE_STDINT_H
+#ifndef __STDC_LIMIT_MACROS
+#define __STDC_LIMIT_MACROS
+#endif
#ifdef WIN32
#ifdef _WIN64
@@ -54,10 +58,6 @@
#include <stdio.h> /* Include that here, to make sure __P gets defined */
#include <errno.h>
#include <fcntl.h> /* For open and flags */
-#ifdef HAVE_STDINT_H
-#ifndef __STDC_LIMIT_MACROS
-#define __STDC_LIMIT_MACROS
-#endif
#include <stdint.h>
#endif
#ifdef HAVE_INTTYPES_H