Module Name: src
Committed By: jakllsch
Date: Fri Aug 10 17:05:22 UTC 2018
Modified Files:
src/sys/arch/arm/include: int_const.h
Log Message:
fix arm int_const.h for aarch64
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/arm/include/int_const.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/include/int_const.h
diff -u src/sys/arch/arm/include/int_const.h:1.4 src/sys/arch/arm/include/int_const.h:1.5
--- src/sys/arch/arm/include/int_const.h:1.4 Fri Jul 25 21:43:13 2014
+++ src/sys/arch/arm/include/int_const.h Fri Aug 10 17:05:22 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: int_const.h,v 1.4 2014/07/25 21:43:13 joerg Exp $ */
+/* $NetBSD: int_const.h,v 1.5 2018/08/10 17:05:22 jakllsch Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -44,17 +44,31 @@
#define INT8_C(c) c
#define INT16_C(c) c
#define INT32_C(c) c
+#ifdef _LP64
+#define INT64_C(c) c ## L
+#else
#define INT64_C(c) c ## LL
+#endif
#define UINT8_C(c) c
#define UINT16_C(c) c
#define UINT32_C(c) c ## U
+#ifdef _LP64
+#define UINT64_C(c) c ## UL
+#else
#define UINT64_C(c) c ## ULL
+#endif
/* 7.18.4.2 Macros for greatest-width integer constants */
+#ifdef _LP64
+#define INTMAX_C(c) c ## L
+#define UINTMAX_C(c) c ## UL
+#else
#define INTMAX_C(c) c ## LL
#define UINTMAX_C(c) c ## ULL
#endif
+#endif /* !__INTMAX_C_SUFFIX__ */
+
#endif /* !_ARM_INT_CONST_H_ */