// cstdlib standard header
#ifndef _CSTDLIB_
#define _CSTDLIB_
#include <yvals.h>

#ifdef _STD_USING
 #undef _STD_USING
 #define _CPP_STYLE_HEADER     /* for __TI_COMPILER_VERSION__ */
  #include <stdlib.h>
 #define _STD_USING
 #undef _CPP_STYLE_HEADER      /* for __TI_COMPILER_VERSION__ */

 #if defined(__GLIBC__)  || defined(__TI_COMPILER_VERSION__) 
_STD_BEGIN
		/* long OVERLOADS */
inline long abs(long _Left)
	{	// compute abs
	return (labs(_Left));
	}

inline ldiv_t div(long _Left, long _Right)
	{	// compute quotient and remainder
	return (ldiv(_Left, _Right));
	}
_STD_END
 #endif /* defined(__GNUC__) */

 #if defined(__TI_COMPILER_VERSION__) && defined(_LONGLONG)
_STD_BEGIN
		/* long long OVERLOADS */
inline long long abs(long long _Left)
	{	// compute abs
	return (llabs(_Left));
	}

inline lldiv_t div(long long _Left, long long _Right)
	{	// compute quotient and remainder
	return (lldiv(_Left, _Right));
	}
_STD_END
 #endif

#else /* _STD_USING */
 #include <stdlib.h>

 #ifdef _GLOBAL_USING



_STD_BEGIN


using _CSTD size_t; using _CSTD div_t; using _CSTD ldiv_t;

using _CSTD abort; using _CSTD abs; using _CSTD atexit;
using _CSTD atof; using _CSTD atoi; using _CSTD atol;
using _CSTD bsearch; using _CSTD calloc; using _CSTD div;
using _CSTD exit; using _CSTD free; using _CSTD getenv;
using _CSTD labs; using _CSTD ldiv; using _CSTD malloc;
using _CSTD mblen; using _CSTD mbstowcs; using _CSTD mbtowc;
using _CSTD qsort; using _CSTD rand; using _CSTD realloc;
using _CSTD srand; using _CSTD strtod; using _CSTD strtol;
using _CSTD strtoul; using _CSTD system;
using _CSTD wcstombs; using _CSTD wctomb;

 #if _HAS_C9X
using _CSTD atoll; using _CSTD llabs; using _CSTD lldiv;
using _CSTD strtof; using _CSTD strtold;
using _CSTD strtoll; using _CSTD strtoull;
using _CSTD _Exit;
 #endif /* _HAS_C9X */

_STD_END
 #endif /* _GLOBAL_USING */

#endif /* _STD_USING */
#endif /* _CSTDLIB_ */

/*
 * Copyright (c) 1992-2004 by P.J. Plauger.  ALL RIGHTS RESERVED.
 * Consult your license regarding permissions and restrictions.
V4.02:1476 */
