* fixed GCC 4.4.0 mingw compilation:
[fw/sdcc] / device / include / stdlib.h
index 17043cd22b6269ff8552d9e3b735e0984672e886..1e3dbeb87ade4369fdc107c75255e267070236ce 100644 (file)
 #ifndef __SDC51_STDLIB_H
 #define __SDC51_STDLIB_H 1
 
-#ifndef
+#ifndef NULL
 # define NULL (void *)0
 #endif
 
+#include <malloc.h>
+
+int abs(int j);
+long int labs(long int j);
+
+extern float atof (char *);
 extern int atoi (char *);
 extern long atol (char *);
 
@@ -37,4 +43,9 @@ extern void _itoa(unsigned int, char*, unsigned char);
 
 extern void _ultoa(unsigned long, char*, unsigned char);
 extern void _ltoa(unsigned long, char*, unsigned char);
+
+#define RAND_MAX 32767
+
+int rand(void);
+void srand(unsigned int seed);
 #endif