amd64: reduce header pollution in _stdint.h

In 38d1ac34ff SIGATOMIC_{MIN,MAX} were
defined in terms of LONG_{MIN,MAX}.  Later, they were switched to
__LONG_{MIN,MAX} in 78fe75bc28 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
This commit is contained in:
Brooks Davis 2023-03-22 16:23:57 +00:00
parent de761318a4
commit eb232cffc9

View File

@ -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