Commit 106b1ec1 authored by Jens Gustedt's avatar Jens Gustedt
Browse files

p99_try.h needs math.h for HUGE_VALF

parent f637b688
...@@ -184,9 +184,15 @@ P00_THROW_CALL_RANGE(ushort, 0, USHRT_MAX); ...@@ -184,9 +184,15 @@ P00_THROW_CALL_RANGE(ushort, 0, USHRT_MAX);
P00_THROW_CALL_RANGE(unsigned, 0, UINT_MAX); P00_THROW_CALL_RANGE(unsigned, 0, UINT_MAX);
P00_THROW_CALL_RANGE(ulong, 0, ULONG_MAX); P00_THROW_CALL_RANGE(ulong, 0, ULONG_MAX);
P00_THROW_CALL_RANGE(ullong, 0, ULLONG_MAX); P00_THROW_CALL_RANGE(ullong, 0, ULLONG_MAX);
# ifdef HUGE_VALF
P00_THROW_CALL_RANGE(float, 1, HUGE_VALF, -HUGE_VALF); P00_THROW_CALL_RANGE(float, 1, HUGE_VALF, -HUGE_VALF);
# endif
# ifdef HUGE_VAL
P00_THROW_CALL_RANGE(double, 1, HUGE_VAL, -HUGE_VAL); P00_THROW_CALL_RANGE(double, 1, HUGE_VAL, -HUGE_VAL);
# endif
# ifdef HUGE_VALL
P00_THROW_CALL_RANGE(ldouble, 1, HUGE_VALL, -HUGE_VALL); P00_THROW_CALL_RANGE(ldouble, 1, HUGE_VALL, -HUGE_VALL);
# endif
#define P00_THROW_CALL_RANGE_CASE(T) ,(T, P99_PASTE2(p00_throw_call_range_, T)) #define P00_THROW_CALL_RANGE_CASE(T) ,(T, P99_PASTE2(p00_throw_call_range_, T))
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
/* without even the implied warranty of merchantability or fitness for a */ /* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */ /* particular purpose. */
/* */ /* */
#include <math.h>
#include "p99_c99_throw.h" #include "p99_c99_throw.h"
int main(void) { int main(void) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment