mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
amd64: reduce header pollution in _stdint.h
In38d1ac34ffSIGATOMIC_{MIN,MAX} were defined in terms of LONG_{MIN,MAX}. Later, they were switched to __LONG_{MIN,MAX} in78fe75bc28where 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:
parent
de761318a4
commit
eb232cffc9
1 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue