set -DTYPE_BOOL=1 for C++

This commit is contained in:
Wolfgang Thaller 2012-03-29 21:58:22 +02:00
parent 8dbff71e48
commit 6b484b5f72
1 changed files with 4 additions and 1 deletions

View File

@ -222,7 +222,10 @@ processFile inputDir outputDir file
hPutStrLn outf $ unlines [
"#define TARGET_CPU_68K 1",
"#define TYPE_LONGLONG 1",
"#define pascal"
"#define pascal",
"#ifdef __cplusplus",
"#define TYPE_BOOL 1",
"#endif"
]
hPutStr outf $ concatMap (outputItem typeMap) $ collectPragmas $ items
hClose outf