From ca01bb2b86721aeeebef9c902c83bbfa00ecacb9 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Fri, 11 Sep 2009 04:35:45 +0000 Subject: [PATCH] Add an include guard in agi_pre.h, for whatever reason GCC likes to include the precompiled header twice. I've added a note that this needs to be looked at eventually. Originally committed to SVN as r3531. --- aegisub/src/agi_pre.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/aegisub/src/agi_pre.h b/aegisub/src/agi_pre.h index 5e3a72cc4..b0f535704 100644 --- a/aegisub/src/agi_pre.h +++ b/aegisub/src/agi_pre.h @@ -40,8 +40,12 @@ /// @note Make sure that you disable use of precompiled headers on md5.c and /// MatroskaParser.c, as well as any possible future .c files. +#ifndef AGI_PRE_H + +/// @brief Inclusion guard. +/// @todo Why is this even nessicary? GCC seems to include agi_pre.h twice for no reason. +#define AGI_PRE_H -//////////// // C++ only #ifdef __cplusplus @@ -240,3 +244,5 @@ #include "include/aegisub/exception.h" #endif // C++ + +#endif // AGI_PRE_H