// afxv_cfg.h - target configuration control for non-Microsoft compilers

// You can define _AFX_PORTABLE in order to keep the library from using
//  certain Microsoft extensions that are not commonly implemented by
//  other compilers.

#define _AFX_PORTABLE

#ifdef __WATCOMC__

#ifdef _UNICODE
#define __UNICODE__
#endif

#ifdef __SW_BD
#define _DLL
#endif

#ifdef __SW_BM
#define _MT
#endif

extern "C" size_t _ustrlen( const wchar_t * );
#define wcslen _ustrlen

extern "C" int  _hdopen(int __handle,int __mode);
#define _open_osfhandle _hdopen

extern "C" int  _os_handle(int __handle);
#define _get_osfhandle _os_handle

extern "C" unsigned  _argc;
#define __argc _argc

extern "C" char	**_argv;
#define __argv _argv

#undef AFX_CDECL
#define AFX_CDECL

#undef AFX_CORE1_SEG                       // core functionality
#undef AFX_CORE2_SEG                       // more core functionality
#undef AFX_CORE3_SEG                       // more core functionality
#undef AFX_CORE4_SEG                       // more core functionality
#undef AFX_AUX_SEG                         // auxilliary functionality
#undef AFX_COLL_SEG                        // collections
#undef AFX_COLL2_SEG                       // more collections
#undef AFX_OLE_SEG                         // OLE support
#undef AFX_OLE2_SEG                        // more OLE support
#undef AFX_OLE3_SEG                        // and more OLE support
#undef AFX_OLE4_SEG                        // and more OLE support
#undef AFX_OLE5_SEG                        // and even more OLE support
#undef AFX_PRINT_SEG                       // Printing functionality
#undef AFX_DBG1_SEG                        // inlines go here in _DEBUG
#undef AFX_DBG2_SEG                        // inlines go here in _DEBUG
#undef AFX_VDEL_SEG                        // vector deleting destructors
#undef AFX_TERM_SEG                        // cleanup routines
#undef AFX_INIT_SEG                        // initialization
#undef AFX_MAPI_SEG			   // simple MAPI support
#undef AFX_SOCK_SEG			   // windows sockets support

#endif
