summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pugixml.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index cd42544..5193e68 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -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