mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
internal/stdbool.h rework
Noticed that internal/stdbool.h and addr2line.c are the only two place where missing/stdbool.h is included. Why not delete the file so that we can merge internal/stdbool.h and missing/stdbool.h into one.
This commit is contained in:
parent
5e22f873ed
commit
8184adabe5
Notes:
git
2019-12-26 20:45:54 +09:00
3 changed files with 17 additions and 27 deletions
|
@ -1,20 +0,0 @@
|
|||
/*
|
||||
* missing/stdbool.h: Quick alternative of C99 stdbool.h
|
||||
*/
|
||||
|
||||
#ifndef _MISSING_STDBOOL_H_
|
||||
#define _MISSING_STDBOOL_H_
|
||||
|
||||
#ifndef __bool_true_false_are_defined
|
||||
# ifndef __cplusplus
|
||||
# undef bool
|
||||
# undef false
|
||||
# undef true
|
||||
# define bool signed char
|
||||
# define false 0
|
||||
# define true 1
|
||||
# define __bool_true_false_are_defined 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif /* _MISSING_STDBOOL_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue