Fix some "long double" nonsense

Apparently in addition to "float", "double" and "long double" there
are now standard types in <math.h> called "float_t" and "double_t".
Those types don't need to be equivalent to "float" and "double". Gah!
This commit is contained in:
Lassi Kortela 2019-08-13 18:28:19 +03:00
parent 4a89521493
commit 71098dd01b
3 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,6 @@
#include <assert.h>
#include <limits.h>
#include <math.h>
#include <setjmp.h>
#include <stdarg.h>
#include <stdint.h>

View File

@ -353,8 +353,8 @@ struct fltype *get_array_type(value_t eltype);
struct fltype *define_opaque_type(value_t sym, size_t sz,
struct cvtable *vtab, cvinitfunc_t init);
value_t mk_double(double n);
value_t mk_float(float n);
value_t mk_double(double_t n);
value_t mk_float(float_t n);
value_t mk_uint32(uint32_t n);
value_t mk_uint64(uint64_t n);
value_t mk_wchar(int32_t n);

View File

@ -1,4 +1,5 @@
#include <assert.h>
#include <math.h>
#include <setjmp.h>
#include <stdarg.h>
#include <stdint.h>