Make WvStreams compile with gcc 4.4.
[wvstreams.git] / include / wvxplc.h
blob728b113e31d7c2edf100fb5f41b69117feacab6f
1 /* -*- Mode: C++ -*-
2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4 *
5 * XPLC setup bits.
6 */
7 #ifndef __WVXPLC_H
8 #define __WVXPLC_H
10 #ifndef UNSTABLE
11 #define UNSTABLE
12 #endif
14 #ifdef _WIN32
15 #include <time.h>
16 #include <winsock2.h>
17 #include <ws2tcpip.h>
18 #include "wvwin32-sanitize.h"
19 #else
20 #include <unistd.h> // not strictly necessary, but EVERYBODY uses this...
21 #include <sys/time.h>
22 #include "wvautoconf.h"
23 #endif
25 #ifndef ENABLE_DELETE_DETECTOR
26 #include <xplc/IObject.h>
27 #define deletev delete[]
28 #else
29 #include <string>
30 #include <xplc/delete.h>
31 #endif
33 #include <xplc/xplc.h>
34 #include <xplc/ptr.h>
35 #include <xplc/uuidops.h>
37 #define WVRELEASE(ptr) do { if (ptr) ptr->release(); ptr = 0; } while (0)
38 #define WVDELETE(ptr) do { delete ptr; ptr = 0; } while (0)
40 #endif // __WVXPLC_H