// afxv_cfg.h - target configuration control for non-Microsoft compilers
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1995 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.

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

#ifdef __WATCOMC__
    //
    // Temporary Warnings!!!
    //
    #pragma warning 249 5
    #pragma warning 379 5

    #define _AFX_PORTABLE
    
    #ifdef _UNICODE
    #define __UNICODE__
    #endif
    
    #ifdef __SW_BD
    # ifndef _DLL
	#define _DLL
    # endif
    #endif
    
    #ifdef __SW_BM
    # ifndef _DLL
	#define _MT    1
    # endif
    #endif
    
    //extern "C" size_t _ustrlen( const wchar_t * );
    //#define wcslen _ustrlen
    
    #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
    
    #define _AFX_NO_DEBUG_CRT                  // disable use of crtdbg.h
    #define _RICHEDIT_VER	0x0100
    #define _OLEAUT32_

    //
    // Warnings we need to ignore
    //
    #if !defined(ALL_WARNINGS)
	#pragma warning 7 5	    // &array may not produce intended results
	#pragma warning 13 5    // unreachable code
	#pragma warning 14 5    // no reference to symbol
	#pragma warning 297 5   // class friend decl. needs 'class' or 'struct'
	#pragma warning 354 5	// unsigned or pntr expression is always >= 0
	#pragma warning 355 5   // unsigned or pntr expression is never < 0
	#pragma warning 367 5	// conditional in if always true
	#pragma warning 368 5   // conditional in if always false
	#pragma warning 387 5	// exression only useful for side-effects
	#pragma warning 389 5	// integral value may be truncated
	#pragma warning 391 5   // assignment found in boolean expression
	#pragma warning 549 5   // sizeof contains compiler generated info
	#pragma warning 555 5   // while always false
	#pragma warning 583 5   // typedef redefine ignored
	#pragma warning 594 5   // ambiguity resolution declaration
	#pragma warning 595 5   // ambiguity resolution expression
	#pragma warning 604 5   // amgibuity
	#pragma warning 618 5	// function will be overload ambiguous using default arguments 
	#pragma warning 627 5   // text following pre-processor directive
	#pragma warning 628 5   // unused macro yields: expr. is not meaningful
    
	#ifdef _DEBUG
	    #pragma warning 391 5	// assignment found in boolean expression
	#endif
    #endif // !ALL_WARNINGS
#endif
