1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/missing/stdbool.h

21 lines
377 B
C
Raw Normal View History

/*
* 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_ */