summaryrefslogtreecommitdiffstats
path: root/libidu/iduglobal.h
diff options
context:
space:
mode:
Diffstat (limited to 'libidu/iduglobal.h')
-rw-r--r--libidu/iduglobal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libidu/iduglobal.h b/libidu/iduglobal.h
index e7a2916..1441efe 100644
--- a/libidu/iduglobal.h
+++ b/libidu/iduglobal.h
@@ -68,4 +68,14 @@
#define DOT_DOT_SLASH "..\\"
#endif
+/* vvv fix me: does not solve off_t printing problem, only a workaround vvv */
+
+#if SIZEOF_OFF_T == SIZEOF_INT
+# define OFF_FMT "%d"
+#elif SIZEOF_OFF_T == SIZEOF_LONG
+# define OFF_FMT "%ld"
+#else
+# define OFF_FMT "%lld"
+#endif
+
#endif /* _iduglobal_h */