use stdbool

This commit is contained in:
Vítor Santos Costa 2014-09-10 00:38:31 -05:00
parent 0ed6fe43b2
commit 4745401b2a
1 changed files with 15 additions and 1 deletions

View File

@ -43,13 +43,27 @@ extern "C" {
#include <Yap/YapInterface.h>
#endif
#include <stdarg.h>
#include <stdlib.h>
#include <stddef.h>
#include <wchar.h>
#if HAVE_TIME_H
#include <time.h>
#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__
#if defined(_MSC_VER) || defined(__MINGW32__)
#define __WINDOWS__ 1