Skip to content

Commit

Permalink
Fix missing definitions in Glib C 2.27
Browse files Browse the repository at this point in the history
This close #1
  • Loading branch information
jlelong committed May 15, 2018
1 parent 92b01c6 commit a7f6d72
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions src/libcephes/mconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,26 @@ Copyright 1984, 1987, 1989, 1995 by Stephen L. Moshier
/* Constant definitions for math error conditions
*/

/* Already defined in math.h */
/* #define DOMAIN 1 |+ argument domain error +| */
/* #define SING 2 |+ argument singularity +| */
/* #define OVERFLOW 3 |+ overflow range error +| */
/* #define UNDERFLOW 4 |+ underflow range error +| */
/* #define TLOSS 5 |+ total loss of precision +| */
/* #define PLOSS 6 |+ partial loss of precision +| */
/* These constants were defined in math.h, prior to G libc 2.27 */
#ifndef DOMAIN
#define DOMAIN 1 /* argument domain error */
#endif
#ifndef SING
#define SING 2 /* argument singularity */
#endif
#ifndef OVERFLOW
#define OVERFLOW 3 /* overflow range error */
#endif
#ifndef UNDERFLOW
#define UNDERFLOW 4 /* underflow range error */
#endif
#ifndef TLOSS
#define TLOSS 5 /* total loss of precision */
#endif
#ifndef PLOSS
#define PLOSS 6 /* partial loss of precision */
#endif

#define TOOMANY 7 /* too many iterations */
#define MAXITER 500

Expand Down

0 comments on commit a7f6d72

Please sign in to comment.