OSDN Git Service

Rename cygWFMO to cygwait throughout and use the magic of polymorphism to "wait
[pf3gnuchains/pf3gnuchains4x.git] / winsup / cygwin / cygwin-cxx.h
1 /* cygwin-cxx.h
2
3    Copyright 2009 Red Hat, Inc.
4
5 This file is part of Cygwin.
6
7 This software is a copyrighted work licensed under the terms of the
8 Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
9 details. */
10
11 #ifndef _CYGWIN_CXX_H
12 #define _CYGWIN_CXX_H
13
14 #ifndef __cplusplus
15 #error This header should not be included by C source files.
16 #endif
17
18 /* Files including this header must override -nostdinc++ */
19 #include <new>
20
21 /* This is an optional struct pointed to by per_process if it exists.  */
22 struct per_process_cxx_malloc
23 {
24   void *(*oper_new) (std::size_t);
25   void *(*oper_new__) (std::size_t);
26   void (*oper_delete) (void *);
27   void (*oper_delete__) (void *);
28   void *(*oper_new_nt) (std::size_t, const std::nothrow_t &);
29   void *(*oper_new___nt) (std::size_t, const std::nothrow_t &);
30   void (*oper_delete_nt) (void *, const std::nothrow_t &);
31   void (*oper_delete___nt) (void *, const std::nothrow_t &);
32 };
33
34 /* Defined in cxx.cc  */
35 extern struct per_process_cxx_malloc default_cygwin_cxx_malloc;
36
37 #endif /* _CYGWIN_CXX_H */