Add stdbool.h for old MSVC.

This commit is contained in:
Frank Denis
2013-10-14 17:15:50 -07:00
parent 81321c8809
commit afa49d340c
2 changed files with 21 additions and 0 deletions
+3
View File
@@ -228,3 +228,6 @@ endif
SUBDIRS = \
include
EXTRA_DIST = \
quirks/windows/stdbool.h
+18
View File
@@ -0,0 +1,18 @@
#ifndef __STDBOOL_H__
#define __STDBOOL_H__
#if defined(__cplusplus) || !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L
typedef signed char _Bool;
# undef bool
# define bool _Bool
# ifndef __bool_true_false_are_defined
# undef false
# define false 0
# undef true
# define true 1
# endif
#endif
#endif