From 2efb7070a4faf438953fbf1c51d3f9c33238c91f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Mon, 8 Jul 2013 01:13:25 +0200 Subject: [PATCH] genint1.h is a header file which is used in C and C++ compilation. Make bool typedef to occur only in C compilation. --- src/global/genint1.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/global/genint1.h b/src/global/genint1.h index af4b597..9aeb057 100644 --- a/src/global/genint1.h +++ b/src/global/genint1.h @@ -43,8 +43,10 @@ or Andrzej Salwicki #define APFMPROC 3 /* FORMAL PROCEURE OR FUNCTION VALUE, = APREF+1*/ #define APOPCODE (sizeof(extopcode)+sizeof(word)-1)/sizeof(word) - +#ifndef __cplusplus typedef int bool; +#endif + #define FALSE 0 #define TRUE 1 -- 2.30.2