summaryrefslogtreecommitdiff
path: root/gc_cpp.cc
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2011-09-13 10:09:05 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-09-13 10:09:05 +0200
commite5805131256a42ca352adfcaa9169e43031067d7 (patch)
treee54c5eb08b89fa40ebb300261d6228013a11936f /gc_cpp.cc
parent111506a177964653bf46ee4f17b08371e29117bb (diff)
HOTFIX: Fix gc_cpp.cc for Cygwin (remove duplicate function definition).
* gc_cpp.cc (operator delete): Do not define for Cygwin since already defined in include/gc_cpp.h file.
Diffstat (limited to 'gc_cpp.cc')
-rw-r--r--gc_cpp.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/gc_cpp.cc b/gc_cpp.cc
index 40153cb..583e6cd 100644
--- a/gc_cpp.cc
+++ b/gc_cpp.cc
@@ -37,8 +37,11 @@ Authors: John R. Ellis and Jesse Hull
void* operator new( size_t size ) {
return GC_MALLOC_UNCOLLECTABLE( size );}
-void operator delete( void* obj ) {
- GC_FREE( obj );}
+#if !defined(__CYGWIN__)
+ void operator delete( void* obj ) {
+ GC_FREE( obj );
+ }
+#endif /* !__CYGWIN__ */
#ifdef GC_OPERATOR_NEW_ARRAY