libc: Compliance bugs
authorAlan Cox <alan@linux.intel.com>
Fri, 23 Feb 2018 22:53:54 +0000 (22:53 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 23 Feb 2018 22:53:54 +0000 (22:53 +0000)
Missing a prototype for powf()
Missing RAND_MAX definition required by ISO C

Library/include/math.h
Library/include/stdlib.h

index ef87989..baf5e60 100644 (file)
@@ -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);
index d9180f0..4d78fb4 100644 (file)
@@ -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);