//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
/****************************************************************************
*                                                                           *
* windef.h -- Basic Windows Type Definitions                                *
*             Adjust to TI 16 bit                                           *
*                                                                           *
****************************************************************************/

#ifndef  _WINDEF__
#define  _WINDEF__

#ifndef  ULONG
typedef unsigned int   ULONG;   /* unsigned 32 bit  */
#endif


#ifndef  USHORT
typedef unsigned short USHORT;  /* unsigned 16 bit  */
#endif
#ifndef  UCHAR
typedef unsigned char  UCHAR;   /* unsigned  8 bit  */
#endif
#ifndef  LONG
typedef          int   LONG;    /*   signed 32 bit  */
#endif
#ifndef  SHORT
typedef          short SHORT;   /*   signed 16 bit  */
#endif
#ifndef  CHAR
typedef          char  CHAR;    /*   signed  8 bit  */
#endif

#ifndef NULL
#ifdef __cplusplus
#define NULL    0
#else
#define NULL    ((void *)0)
#endif
#endif

#ifndef FALSE
#define FALSE               0
#endif

#ifndef TRUE
#define TRUE                1
#endif

#define FAIL (-1)
#define UNINITIALIZED (-1)

#ifndef max
#define max(a,b)            (((a) > (b)) ? (a) : (b))
#endif

#ifndef min
#define min(a,b)            (((a) < (b)) ? (a) : (b))
#endif



#endif /* _WINDEF_ */

