summaryrefslogtreecommitdiff
path: root/include/my_global.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/my_global.h')
-rw-r--r--include/my_global.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 2ad8a870048..c13b79cbc1f 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -150,6 +150,13 @@
#define __LONG_MAX__ 2147483647
#endif
+/* Fix problem when linking c++ programs with gcc 3.x */
+#ifdef DEFINE_CXA_PURE_VIRTUAL
+#define FIX_GCC_LINKING_PROBLEM extern "C" { int __cxa_pure_virtual() {} }
+#else
+#define FIX_GCC_LINKING_PROBLEM
+#endif
+
/* egcs 1.1.2 has a problem with memcpy on Alpha */
#if defined(__GNUC__) && defined(__alpha__) && ! (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))
#define BAD_MEMCPY