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

View File

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