use stdbool
This commit is contained in:
parent
0ed6fe43b2
commit
4745401b2a
@ -43,13 +43,27 @@ extern "C" {
|
|||||||
#include <Yap/YapInterface.h>
|
#include <Yap/YapInterface.h>
|
||||||
#endif
|
#endif
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
#if HAVE_TIME_H
|
#if HAVE_TIME_H
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if HAVE_STDBOOL_H
|
||||||
|
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
#elif !defined(true)
|
||||||
|
|
||||||
|
typedef int _Bool;
|
||||||
|
|
||||||
|
#define bool _Bool
|
||||||
|
|
||||||
|
#define true 1
|
||||||
|
|
||||||
|
#define false 0
|
||||||
|
|
||||||
|
#endif
|
||||||
#ifndef __WINDOWS__
|
#ifndef __WINDOWS__
|
||||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||||
#define __WINDOWS__ 1
|
#define __WINDOWS__ 1
|
||||||
|
Reference in New Issue
Block a user