Merge pull request #431 from justinkb/master
Fix include in test_document.cpp when building against libc++. The _GLIBCXX_HAVE_UNISTD_H relies on pugixml and its tests being built against libstdc++, with LLVM's libc++ this won't be defined
This commit is contained in:
commit
657619962f
@ -22,12 +22,11 @@
|
|||||||
# include <stdexcept>
|
# include <stdexcept>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __MINGW32__
|
// for unlink
|
||||||
# include <io.h> // for unlink in C++0x mode
|
#ifdef _WIN32
|
||||||
#endif
|
# include <io.h>
|
||||||
|
#else
|
||||||
#if defined(__CELLOS_LV2__) || defined(ANDROID) || defined(_GLIBCXX_HAVE_UNISTD_H) || defined(__APPLE__)
|
# include <unistd.h>
|
||||||
# include <unistd.h> // for unlink
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using namespace pugi;
|
using namespace pugi;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user