You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

json_stdbool.h 541 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef _json_stdbool_h_
  2. #define _json_stdbool_h_
  3. #include "json_config.h"
  4. #ifndef __cplusplus
  5. #if defined(_MSC_VER)
  6. /* The C language implementation does not provide the standard header
  7. * file "stdbool.h" as required by ISO/IEC 9899:1999.
  8. */
  9. #if !defined(bool)
  10. #define bool int
  11. #endif
  12. #if !defined(true)
  13. #define true 1
  14. #endif
  15. #if !defined(false)
  16. #define false 0
  17. #endif
  18. #else /* ndef _MSC_VER */
  19. #ifdef JSON_C_HAVE_STDBOOL_H
  20. #include <stdbool.h>
  21. #endif
  22. #endif /* _MSC_VER */
  23. #endif /* __cplusplus */
  24. #endif /* _json_stdbool_h_ */