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

Routine:
  Xflost.h

Description:
  Definitions for missing float.h

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

----------------------------------------------------------------------*/

#ifndef Xfloat_h_
#define Xfloat_h_

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

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

/* Workaround for no float.h on some Sun systems */
/* FLT_MAX, FLT_MIN, DBL_MAX, DBL_MIN */
#ifndef sunOS4
#  include <float.h>
#else
#  ifndef FLT_MAX
#    include <values.h>
#    define FLT_MAX MAXFLOAT
#    define FLT_MIN MINFLOAT
#    define DBL_MAX MAXDOUBLE
#    define DBL_MIN MINDOUBLE
#  endif
#endif

#endif /* Xfloat_h_ */
