]> granicus.if.org Git - gc/commitdiff
2010-01-15 Ivan Maidanski <ivmai@mail.ru>
authorivmai <ivmai>
Fri, 15 Jan 2010 07:23:05 +0000 (07:23 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:52 +0000 (21:06 +0400)
* include/gc_cpp.h (GC_PLACEMENT_DELETE): Define for Embarcadero
(formerly known as Borland) C++ compiler v6.21+.
* include/gc_cpp.h (GC_NO_OPERATOR_NEW_ARRAY): Define for ancient
VC++ compilers.

ChangeLog
include/gc_cpp.h

index 2748a3ed8bac3fc2a3b2bfe8c7dc9fba4f82d8c1..f4cad32b10f44c594221e46a3422e3174b25ba69 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-01-15  Ivan Maidanski <ivmai@mail.ru>
+
+       * include/gc_cpp.h (GC_PLACEMENT_DELETE): Define for Embarcadero
+       (formerly known as Borland) C++ compiler v6.21+.
+       * include/gc_cpp.h (GC_NO_OPERATOR_NEW_ARRAY): Define for ancient
+       VC++ compilers.
+
 2009-12-18  Ivan Maidanski <ivmai@mail.ru>
 
        * win32_threads.c (GC_register_my_thread_inner,
index a1eabe3df56906eb28ec8f6735bc73355798337d..ff77a1fdc069eaa7974ab150db5d2c912e778b0b 100644 (file)
@@ -153,6 +153,7 @@ by UseGC.  GC is an alias for UseGC, unless GC_NAME_CONFLICT is defined.
     && (defined(__BORLANDC__) && (__BORLANDC__ < 0x450) \
         || (defined(__GNUC__) && \
             (__GNUC__ < 2 || __GNUC__ == 2 && __GNUC_MINOR__ < 6)) \
+        || (defined(_MSC_VER) && _MSC_VER <= 1020) \
         || (defined(__WATCOMC__) && __WATCOMC__ < 1050))
 #   define GC_NO_OPERATOR_NEW_ARRAY
 #endif
@@ -161,7 +162,7 @@ by UseGC.  GC is an alias for UseGC, unless GC_NAME_CONFLICT is defined.
 #   define GC_OPERATOR_NEW_ARRAY
 #endif
 
-#if    ! defined ( __BORLANDC__ )  /* Confuses the Borland compiler. */ \
+#if (!defined(__BORLANDC__) || __BORLANDC__ > 0x0620) \
     && ! defined ( __sgi ) && ! defined( __WATCOMC__ ) \
     && (!defined(_MSC_VER) || _MSC_VER > 1020)
 #  define GC_PLACEMENT_DELETE