mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-11 14:10:49 +02:00
Bash-5.3-alpha release
This commit is contained in:
+25
-1
@@ -1,6 +1,6 @@
|
||||
/* bashansi.h -- Typically included information required by picky compilers. */
|
||||
|
||||
/* Copyright (C) 1993-2021 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1993-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash, the Bourne Again SHell.
|
||||
|
||||
@@ -35,4 +35,28 @@
|
||||
# include "ansi_stdlib.h"
|
||||
#endif /* !HAVE_STDLIB_H */
|
||||
|
||||
/* If bool is not a compiler builtin, prefer stdbool.h if we have it */
|
||||
#if !defined (HAVE_C_BOOL)
|
||||
# if defined (HAVE_STDBOOL_H)
|
||||
# include <stdbool.h>
|
||||
# else
|
||||
# undef bool
|
||||
typedef unsigned char bool;
|
||||
# define true 1
|
||||
# define false 0
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Include <stddef.h>, or define substitutes (config.h handles ptrdiff_t). */
|
||||
#ifdef HAVE_STDDEF_H
|
||||
# include <stddef.h>
|
||||
#endif
|
||||
/* Substitutes for definitions in stddef.h */
|
||||
#ifndef NULL
|
||||
# define NULL 0
|
||||
#endif
|
||||
#ifndef offsetof
|
||||
# define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
|
||||
#endif
|
||||
|
||||
#endif /* !_BASHANSI_H_ */
|
||||
|
||||
Reference in New Issue
Block a user