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:
Arseny Kapoulkine 2021-06-30 14:28:44 -07:00 committed by GitHub
commit 657619962f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;