2002-12-05 04:36:23 +08:00
|
|
|
/* cxx.cc
|
|
|
|
|
2009-01-03 13:12:22 +08:00
|
|
|
Copyright 2002, 2003, 2005, 2009 Red Hat, Inc.
|
2002-12-05 04:36:23 +08:00
|
|
|
|
|
|
|
This file is part of Cygwin.
|
|
|
|
|
|
|
|
This software is a copyrighted work licensed under the terms of the
|
|
|
|
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
|
|
|
details. */
|
|
|
|
|
|
|
|
#if (__GNUC__ >= 3)
|
|
|
|
|
|
|
|
#include "winsup.h"
|
|
|
|
|
|
|
|
void *
|
|
|
|
operator new (size_t s)
|
|
|
|
{
|
2003-09-04 11:01:35 +08:00
|
|
|
void *p = calloc (1, s);
|
2002-12-05 04:36:23 +08:00
|
|
|
return p;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
operator delete (void *p)
|
|
|
|
{
|
|
|
|
free (p);
|
|
|
|
}
|
|
|
|
|
|
|
|
void *
|
|
|
|
operator new[] (size_t s)
|
|
|
|
{
|
|
|
|
return ::operator new (s);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
operator delete[] (void *p)
|
|
|
|
{
|
|
|
|
::operator delete (p);
|
|
|
|
}
|
|
|
|
|
|
|
|
extern "C" void
|
|
|
|
__cxa_pure_virtual (void)
|
|
|
|
{
|
|
|
|
api_fatal ("pure virtual method called");
|
|
|
|
}
|
2005-03-20 05:45:15 +08:00
|
|
|
|
|
|
|
extern "C" void
|
|
|
|
__cxa_guard_acquire ()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
extern "C" void
|
|
|
|
__cxa_guard_release ()
|
|
|
|
{
|
|
|
|
}
|
2002-12-05 04:36:23 +08:00
|
|
|
#endif
|