mirror of
https://github.com/zeux/pugixml.git
synced 2025-01-17 04:50:23 +08:00
Fixed Borland C++ issues when compiling pugixml as header-only
git-svn-id: http://pugixml.googlecode.com/svn/trunk@864 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
81e248b3b6
commit
07cda98d66
@ -56,6 +56,10 @@
|
||||
# pragma warning(disable: 1684) // conversion from pointer to same-sized integral type
|
||||
#endif
|
||||
|
||||
#if defined(__BORLANDC__) && defined(PUGIXML_HEADER_ONLY)
|
||||
# pragma warn -8080 // symbol is declared but never used; disabling this inside push/pop bracket does not make the warning go away
|
||||
#endif
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
# pragma option push
|
||||
# pragma warn -8008 // condition is always false
|
||||
@ -87,6 +91,12 @@
|
||||
# define PUGI__DMC_VOLATILE
|
||||
#endif
|
||||
|
||||
// Borland C++ bug workaround for not defining ::memcpy depending on header include order (can't always use std::memcpy because some compilers don't have it at all)
|
||||
#if defined(__BORLANDC__) && !defined(__MEM_H_USING_LIST)
|
||||
using std::memcpy;
|
||||
using std::memmove;
|
||||
#endif
|
||||
|
||||
// In some environments MSVC is a compiler but the CRT lacks certain MSVC-specific features
|
||||
#if defined(_MSC_VER) && !defined(__S3E__)
|
||||
# define PUGI__MSVC_CRT_VERSION _MSC_VER
|
||||
|
Loading…
x
Reference in New Issue
Block a user