Newer
Older
snipet / project / trunk / include / sc / sc_stdbool.h
Nomura Kei on 26 Aug 2022 606 bytes old svn data to git
/* =============================================================================
 *  sc_bool.h
 *  Copyright (c) 2003 - 2013  Nomura Kei
 * =============================================================================
 */
#ifndef SC_STDBOOL_H
#define SC_STDBOOL_H
#ifndef __cplusplus

#ifndef CONFIG_H
#include <config.h>
#endif

#if (HAS_STDBOOL_H)
#include <stdbool.h>

#else

/** bool 定義.	*/
typedef enum {
	false = 0,
	true  = 1
} bool;

#ifndef _Bool
/** _Bool 定義.	*/
#define _Bool bool
#endif
	
#endif	/* HAS_STDBOOL_H     */


#endif /* ifndef __cplusplus */
#endif /* SC_STDBOOL_H       */