summaryrefslogtreecommitdiff
path: root/src/file.h
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2018-10-15 16:29:16 +0000
committerChristos Zoulas <christos@zoulas.com>2018-10-15 16:29:16 +0000
commit71a15e2f48ecb3d7094260087fda1b1a2a870431 (patch)
treedaacda8f7a24944eb5c77ccfd08070ae7a50ea83 /src/file.h
parentad749031689686ca86df2e0bef2d5033a52d0073 (diff)
downloadfile-git-71a15e2f48ecb3d7094260087fda1b1a2a870431.tar.gz
- use SIZE_T_FORMAT instead of 'z' in size_t format strings
- compile with c++ again
Diffstat (limited to 'src/file.h')
-rw-r--r--src/file.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/file.h b/src/file.h
index 38987261..ce2ff7d9 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.198 2018/10/01 18:45:39 christos Exp $
+ * @(#)$File: file.h,v 1.199 2018/10/15 16:29:16 christos Exp $
*/
#ifndef __file_h__
@@ -40,6 +40,9 @@
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS
#endif
+#ifndef __STDC_FORMAT_MACROS
+#define __STDC_FORMAT_MACROS
+#endif
#ifdef WIN32
#ifdef _WIN64