Newer
Older
snipet / kscript / include / sc_stdbool.h
Nomura Kei on 9 Aug 2023 723 bytes add kscript
  1. /* vim: ts=4 sw=4 sts=4 ff=unix fenc=utf-8 :
  2. * =====================================================================
  3. * sc_stdbool.h
  4. * Copyright (c) 2003 - 2011 sys0tem
  5. * LICENSE :
  6. * LGPL (GNU Lesser General Public License - Version 3,29 June 2007)
  7. * http://www.gnu.org/copyleft/lesser.html
  8. * or
  9. * EPL (Eclipse Public License - v1.0)
  10. * http://www.eclipse.org/legal/epl-v10.html
  11. * =====================================================================
  12. */
  13. #ifndef __SC_STDBOOL_H__
  14. #define __SC_STDBOOL_H__
  15.  
  16. #if (HAS_STDBOOL_H)
  17. #include <stdbool.h>
  18.  
  19. #else
  20. typedef enum {
  21. false = 0,
  22. true = 1
  23. } bool;
  24. #ifndef _Bool
  25. #define _Bool bool
  26. #endif
  27. #endif /* HAS_STDBOOL_H */
  28.  
  29. #endif /* __SC_STDBOOL_H__ */
  30.