Protect agi_pre.h from double inclusion during PCH generation in MSVC.

Originally committed to SVN as r3527.
This commit is contained in:
Niels Martin Hansen 2009-09-11 02:47:14 +00:00
parent a3bf534b5e
commit d1c70ef6d2
1 changed files with 6 additions and 1 deletions

View File

@ -36,7 +36,7 @@
//
// Precompiled Header Source File
// Precompiled Header Source File for MSVC
//
// In order to use it, set the project to use agi_pre.h as precompiled header and
// insert it in every source file (under C/C++ -> Advanced -> Force Includes),
@ -46,6 +46,11 @@
// MatroskaParser.c, as well as any possible future .c files.
//
// Generally agi_pre.h is set as a forced include for everything, including this file.
// So unless we protect it by this, it gets included twice during production of precompiled
// headers, which can cause problems with local includes.
#ifndef AGI_PRE
#include "config.h"
#include "agi_pre.h"
#endif