Use new C++ sockets for everything except OS/2

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2004-08-04 03:22:44 +00:00
parent 0a64769125
commit 83a9be3427
10 changed files with 169 additions and 266 deletions

View File

@@ -11,10 +11,13 @@
#ifndef __GSOCKET_H
#define __GSOCKET_H
/* DFE: Define this and compile gsocket.cpp instead of gsocket.c and
compile existing GUI gsock*.c as C++ to try out the new GSocket. */
/* #define wxUSE_GSOCKET_CPLUSPLUS 1 */
// FIXME: OS/2 needs to move to modern C++ GSocket
#if defined(__OS2__)
#undef wxUSE_GSOCKET_CPLUSPLUS
#else
#define wxUSE_GSOCKET_CPLUSPLUS 1
#endif
#if !defined(__cplusplus) && defined(wxUSE_GSOCKET_CPLUSPLUS)
#error "You need to compile this file (probably a GUI gsock peice) as C++"
#endif