Newer
Older
snipet / libsc / trunk / include / sc_stdbool.h
Nomura Kei on 26 Aug 2022 754 bytes old svn data to git
/* vim: ts=4 sw=4 sts=4 ff=unix fenc=utf-8 :
 * =====================================================================
 *  sc_stdbool.h
 *  Copyright (c)  2003 - 2011  sys0tem
 *  LICENSE :
 *	LGPL (GNU Lesser General Public License - Version 3,29 June 2007)
 *	http://www.gnu.org/copyleft/lesser.html
 *	or
 *	EPL (Eclipse Public License - v1.0)
 *	http://www.eclipse.org/legal/epl-v10.html
 * =====================================================================
 */
#ifndef __SC_STDBOOL_H__
#define __SC_STDBOOL_H__

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

#else
	typedef enum {
		false = 0,
		true  = 1
	} bool;
	#ifndef _Bool
		#define _Bool bool
	#endif
	
#endif	/* HAS_STDBOOL_H */

#endif	/* __SC_STDBOOL_H__ */