Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
c8b313e7
Commit
c8b313e7
authored
Jan 04, 2000
by
Martin v. Löwis
Committed by
Martin v. Löwis
Jan 04, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ginclude/stdbool.h: Support compilation as C++.
From-SVN: r31201
parent
0f918fea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletions
+16
-1
gcc/ChangeLog
+4
-0
gcc/ginclude/stdbool.h
+12
-1
No files found.
gcc/ChangeLog
View file @
c8b313e7
2000
-
01
-
04
Martin
von
Lwis
<
loewis
@informatik
.
hu
-
berlin
.
de
>
*
ginclude
/
stdbool
.
h
:
Support
compilation
as
C
++
.
Tue
Jan
4
01
:
35
:
13
2000
J
"orn Rennecke <amylaar@cygnus.co.uk>
* fold-const.c (make_range): Don't try to reverse an unbounded range.
...
...
gcc/ginclude/stdbool.h
View file @
c8b313e7
/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
/* Copyright (C) 1998, 1999
, 2000
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -31,6 +31,7 @@ Boston, MA 02111-1307, USA. */
#ifndef _STDBOOL_H
#define _STDBOOL_H
#ifndef __cplusplus
/* The type `_Bool' must promote to `int' or `unsigned int'. The constants
`true' and `false' must have the value 0 and 1 respectively. */
typedef
enum
...
...
@@ -46,6 +47,16 @@ typedef enum
/* The macro `bool', which may be undefined, expands to _Bool. */
#define bool _Bool
#else
/* __cplusplus */
/* Supporting <stdbool.h> in C++ is a GCC extension. */
#define _Bool bool
#define bool bool
#define false false
#define true true
#endif
/* __cplusplus */
/* Signal that all the definitions are present. */
#define __bool_true_false_are_defined 1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment