/*------------ Telecommunications & Signal Processing Lab --------------
                         McGill University

Routine:
  Xstdlib.h

Description:
  Definitions to supplement non-ANSI C versions of stdlib.h

Author / revision:
  P. Kabal  Copyright (C) 1997
  $Revision: 1.1 $  $Date: 1997/10/13 20:49:10 $

----------------------------------------------------------------------*/

#ifndef Xstdlib_h_
#define Xstdlib_h_

#ifndef sun
#  ifdef __sun		/* For Sun SC4.0 cc compiler */
#    define sun
#  endif
#endif

#ifdef sun
#  ifndef __SVR4
#    define sunOS4
#  endif
#endif

#include <stdlib.h>	/* System stdlib.h */

#ifndef EXIT_FAILURE
#  define EXIT_FAILURE	1
#  define EXIT_SUCCESS	0
#endif

#ifdef __cplusplus
extern "C" {
#endif

/* Define return types for some standard functions */
#ifdef sunOS4

double strtod ();	/* In <floatingpoint.h> on SunOS 4 */
long int strtol ();
void perror ();

#endif	/* sunOS4 */

#ifdef __cplusplus
}
#endif

#endif /* Xstdlib_h_ */
