1 /* @(#)float.h 1.1 09/08/08 Copyright 2009 J. Schilling */ 2 /* 3 * Abstraction code for float.h 4 * 5 * Copyright (c) 2009 J. Schilling 6 */ 7 /* 8 * The contents of this file are subject to the terms of the 9 * Common Development and Distribution License, Version 1.0 only 10 * (the "License"). You may not use this file except in compliance 11 * with the License. 12 * 13 * See the file CDDL.Schily.txt in this distribution for details. 14 * A copy of the CDDL is also available via the Internet at 15 * http://www.opensource.org/licenses/cddl1.txt 16 * 17 * When distributing Covered Code, include this CDDL HEADER in each 18 * file and include the License file CDDL.Schily.txt from this distribution. 19 */ 20 21 #ifndef _SCHILY_FLOAT_H 22 #define _SCHILY_FLOAT_H 23 24 #ifndef _SCHILY_MCONFIG_H 25 #include <schily/mconfig.h> 26 #endif 27 28 #ifdef HAVE_FLOAT_H 29 #ifndef _INCL_FLOAT_H 30 #define _INCL_FLOAT_H 31 #include <float.h> 32 #endif 33 #endif 34 35 #ifdef HAVE_VALUES_H 36 #ifndef _INCL_VALUES_H 37 #define _INCL_VALUES_H 38 #include <values.h> 39 #endif 40 41 #ifndef FLT_MAX 42 #define FLT_MAX MAXFLOAT 43 #endif 44 #ifndef FLT_MIN 45 #define FLT_MIN MINFLOAT 46 #endif 47 #ifndef DBL_MAX 48 #define DBL_MAX MAXDOUBLE 49 #endif 50 #ifndef DBL_MIN 51 #define DBL_MIN MINDOUBLE 52 #endif 53 54 #endif 55 56 57 58 #endif /* _SCHILY_FLOAT_H */ 59