From: Rafał Długołęcki Date: Sun, 7 Jul 2013 23:13:25 +0000 (+0200) Subject: genint1.h is a header file which is used in C and C++ compilation. Make bool typedef... X-Git-Tag: 3.1~66 X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=2efb7070a4faf438953fbf1c51d3f9c33238c91f;p=vlp.git genint1.h is a header file which is used in C and C++ compilation. Make bool typedef to occur only in C compilation. --- 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