From 48908d77d9b85dad36e55532787f30690aa1288d Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Sat, 13 May 2006 14:51:29 +0000 Subject: [PATCH] Fix CGG build --- golded3/geline.cpp | 2 +- golded3/golded.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/golded3/geline.cpp b/golded3/geline.cpp index 03f6da8..4817dd1 100644 --- a/golded3/geline.cpp +++ b/golded3/geline.cpp @@ -2986,7 +2986,7 @@ static bool CheckLevel(const char* imp, const char* imp2, int n, int ¤t_ta if (!CharTable) CharTable = (Chs*)throw_calloc(1, sizeof(Chs)); fp.FseekSet(n, sizeof(Chs)); fp.Fread(CharTable, sizeof(Chs)); - + ChsTP = CharTable->t; current_table = n; diff --git a/golded3/golded.h b/golded3/golded.h index 424b6f6..df40ad3 100644 --- a/golded3/golded.h +++ b/golded3/golded.h @@ -40,7 +40,9 @@ #include #include #include -#include +#if __GNUC__ +0 > 2 + #include +#endif #include // Wrappers for certain mostly DOS/Borland headers #include