FreeBSD Bugzilla – Attachment 11695 Details for
Bug 22936
/usr/include/stdbool.h defines _bool twice when included by gcc.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 692 bytes, created by
Donald.J.Maddox
on 2000-11-18 09:00:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Donald.J.Maddox
Created:
2000-11-18 09:00:00 UTC
Size:
692 bytes
patch
obsolete
>--- /usr/src/include/stdbool.h Sat Sep 16 03:28:44 2000 >+++ stdbool.h.new Sat Nov 18 03:23:55 2000 >@@ -31,11 +31,15 @@ > #ifndef _STDBOOL_H_ > #define _STDBOOL_H_ > >+#if __STDC_VERSION__ < 199901L >+typedef int _Bool; /* not built into pre-C99 compilers */ >+#else > /* `_Bool' type must promote to `int' or `unsigned int' */ > typedef enum { > false = 0, > true = 1 > } _Bool; >+#endif > > /* And those constants must also be available as macros */ > #define false false >@@ -46,9 +50,5 @@ > > /* Inform that everything is fine */ > #define __bool_true_false_are_defined 1 >- >-#if __STDC_VERSION__ < 199901L >-typedef int _Bool; /* not built into pre-C99 compilers */ >-#endif > > #endif /* _STDBOOL_H_ */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 22936
: 11695