Newer
Older
snipet / kscript / include / sc_config.h
Nomura Kei on 9 Aug 2023 1 KB add kscript
/* vim: ts=4 sw=4 sts=4 ff=unix fenc=utf-8 :
 * =====================================================================
 *  sc_config.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_CONFIG_H__
#define __SC_CONFIG_H__

/* for C99
 * has inttypes.h
 * has complex.h
 * has stdbool.h
 * has tgmath.h
 * has fenv.h
 * has stdint.h
 */
#if (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))
	#define HAS_INTTYPES_H	(1)
	#define HAS_COMPLEX_H	(1)
	#define HAS_STDBOOL_H	(1)
	#define HAS_TGMATH_H	(1)
	#define HAS_FENV_H		(1)
	#define HAS_STDINT_H	(1)
#else
	#define HAS_INTTYPES_H	(0)
	#define HAS_COMPLEX_H	(0)
	#define HAS_STDBOOL_H	(0)
	#define HAS_TGMATH_H	(0)
	#define HAS_FENV_H		(0)
	#define HAS_STDINT_H	(0)
#endif
	


#endif	/* __SC_CONFIG_H__ */