diff options
author | Christos Zoulas <christos@zoulas.com> | 2017-02-10 18:19:34 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2017-02-10 18:19:34 +0000 |
commit | 5e0901bdc7fdc4ce164ba5cea5df3f251e04cd6b (patch) | |
tree | ee88f97ce064280fc0d47e58e237dc1c9b5801cb | |
parent | 09c12ff0b54d493a4a823fa2836fdf286f991b95 (diff) | |
download | file-git-5e0901bdc7fdc4ce164ba5cea5df3f251e04cd6b.tar.gz |
define __STDC_LIMIT_MACROS sooner
-rw-r--r-- | src/file.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |