summaryrefslogtreecommitdiffstats
path: root/Utilities/cmliblzma/common/sysdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/cmliblzma/common/sysdefs.h')
-rw-r--r--Utilities/cmliblzma/common/sysdefs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Utilities/cmliblzma/common/sysdefs.h b/Utilities/cmliblzma/common/sysdefs.h
index 5beda5c..7481e3d 100644
--- a/Utilities/cmliblzma/common/sysdefs.h
+++ b/Utilities/cmliblzma/common/sysdefs.h
@@ -16,6 +16,10 @@
#ifndef LZMA_SYSDEFS_H
#define LZMA_SYSDEFS_H
+#if defined(_MSC_VER)
+# pragma warning(disable: 4028 4244 4761)
+#endif
+
//////////////
// Includes //
//////////////
@@ -46,6 +50,12 @@
# include <limits.h>
#endif
+
+#if defined(_MSC_VER) && (_MSC_VER < 1310)
+# define UINT64_C(n) n ## ui64
+#endif
+
+
// Be more compatible with systems that have non-conforming inttypes.h.
// We assume that int is 32-bit and that long is either 32-bit or 64-bit.
// Full Autoconf test could be more correct, but this should work well enough.