diff options
Diffstat (limited to 'include/asterisk/compat.h')
-rw-r--r-- | include/asterisk/compat.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h index e5147cbde..c9c99c150 100644 --- a/include/asterisk/compat.h +++ b/include/asterisk/compat.h @@ -224,4 +224,12 @@ float roundf(float x); #endif #endif +#ifndef INFINITY +#define INFINITY (1.0/0.0) +#endif + +#ifndef NAN +#define NAN (0.0/0.0) +#endif + #endif |