git: eb232cffc92d - main - amd64: reduce header pollution in _stdint.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Mar 2023 16:24:37 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/src/commit/?id=eb232cffc92d3bb9776cf0ce0c9a9c30913f8cfa
commit eb232cffc92d3bb9776cf0ce0c9a9c30913f8cfa
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2023-03-22 16:23:57 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2023-03-22 16:23:57 +0000
amd64: reduce header pollution in _stdint.h
In 38d1ac34ff82bd2aeb308b52a65b686060e52873 SIGATOMIC_{MIN,MAX} were
defined in terms of LONG_{MIN,MAX}. Later, they were switched to
__LONG_{MIN,MAX} in 78fe75bc280264e7471b3069e148cae32e8ae211 where an
include of machine/_limits.h was added. Switch to using fixed width
INT64_{MIN,MAX} and remove the header pollution.
No functional change.
Reviewed by: theraven, emaste
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D39196
---
sys/x86/include/_stdint.h | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sys/x86/include/_stdint.h b/sys/x86/include/_stdint.h
index 1607db0de9b6..e891e2230b30 100644
--- a/sys/x86/include/_stdint.h
+++ b/sys/x86/include/_stdint.h
@@ -42,8 +42,6 @@
#ifndef _MACHINE__STDINT_H_
#define _MACHINE__STDINT_H_
-#include <machine/_limits.h>
-
#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS)
#define INT8_C(c) (c)
@@ -171,8 +169,8 @@
#define PTRDIFF_MAX INT64_MAX
/* Limits of sig_atomic_t. */
-#define SIG_ATOMIC_MIN __LONG_MIN
-#define SIG_ATOMIC_MAX __LONG_MAX
+#define SIG_ATOMIC_MIN INT64_MIN
+#define SIG_ATOMIC_MAX INT64_MAX
/* Limit of size_t. */
#define SIZE_MAX UINT64_MAX