Add #ifdef __cplusplus to the precompiled headers to make Xcode happy

This commit is contained in:
Thomas Goyne 2014-06-05 06:55:10 -07:00
parent 50dfa1cd42
commit 421d5ca52e
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,4 @@
#ifdef __cplusplus
#ifndef _WIN32
#include "../acconf.h"
#endif
@ -39,3 +40,4 @@
#include <boost/filesystem.hpp>
#undef BOOST_NO_SCOPED_ENUMS
#include <boost/interprocess/streams/bufferstream.hpp>
#endif

View file

@ -38,6 +38,8 @@
/// @note Make sure that you disable use of precompiled headers on md5.c and
/// MatroskaParser.c, as well as any possible future .c files.
#ifdef __cplusplus
// Block msvc from complaining about not using msvc-specific versions for
// insecure C functions.
#ifdef _CRT_SECURE_NO_WARNINGS
@ -214,3 +216,5 @@
#ifndef _CRT_SECURE_NO_WARNINGS_DEFINED
#undef _CRT_SECURE_NO_WARNINGS
#endif
#endif