]> pd.if.org Git - pdclib/blobdiff - functions/stdlib/strtol.c
Added size_t to stdlib.h, added redefinition guards, adjusted includes.
[pdclib] / functions / stdlib / strtol.c
index 1a40409d7d030dabc609e84f7c163f973d4932e2..7252923f705b373f740d65b59ed56176f32eca34 100644 (file)
@@ -8,9 +8,7 @@
    Permission is granted to use, modify, and / or redistribute at will.
 */
 
-#include <_PDCLIB_int.h>
 #include <limits.h>
-#include <stddef.h>
 #include <stdlib.h>
 
 #ifndef REGTEST
@@ -37,6 +35,12 @@ long int strtol( const char * s, char ** endptr, int base )
 
 #ifdef TEST
 #include <_PDCLIB_test.h>
+
+#ifndef _PDCLIB_INT_H
+#define _PDCLIB_INT_H
+#include <_PDCLIB_int.h>
+#endif
+
 #include <errno.h>
 
 int main()