From: Alan Cox Date: Fri, 23 Feb 2018 22:53:54 +0000 (+0000) Subject: libc: Compliance bugs X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=5388100a2be07b054bb7c51bd80b7dd5aed4f93a;p=FUZIX.git libc: Compliance bugs Missing a prototype for powf() Missing RAND_MAX definition required by ISO C --- diff --git a/Library/include/math.h b/Library/include/math.h index ef879892..baf5e60e 100644 --- a/Library/include/math.h +++ b/Library/include/math.h @@ -214,6 +214,7 @@ extern float modff(float, float *); extern float nanf(const char *__tagp); extern float nearbyintf(float); extern float nextafterf(float, float); +extern float powf(float); extern float remainderf(float, float); extern float remquof(float, float, int *); extern float rintf(float); diff --git a/Library/include/stdlib.h b/Library/include/stdlib.h index d9180f04..4d78fb4a 100644 --- a/Library/include/stdlib.h +++ b/Library/include/stdlib.h @@ -31,6 +31,8 @@ extern void exit(int __status); extern void abort(void); +#define RAND_MAX 32767 + extern int rand(void); extern void srand(unsigned int __seed);