From: solar Date: Tue, 9 May 2006 05:14:25 +0000 (+0000) Subject: Fixed compile warnings / errors. X-Git-Tag: v0.5~199 X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=9f91688d2e009a4c73162da5693bb8f717497586 Fixed compile warnings / errors. --- diff --git a/functions/_PDCLIB/print.c b/functions/_PDCLIB/print.c index 28cd4bc..b0c3341 100644 --- a/functions/_PDCLIB/print.c +++ b/functions/_PDCLIB/print.c @@ -8,6 +8,11 @@ #include #include +#include +#include +#include + +extern char * _PDCLIB_Xdigits; /* Using an integer's bits as flags for both the conversion flags and length modifiers. diff --git a/functions/stdio/gets.c b/functions/stdio/gets.c index 2757522..3529b0b 100644 --- a/functions/stdio/gets.c +++ b/functions/stdio/gets.c @@ -7,13 +7,13 @@ */ #include -#include +#include #ifndef REGTEST char * gets( char * s ) { - return fgets( s, SIZE_MAX, stdin ); + return fgets( s, INT_MAX, stdin ); /* TODO: Replace with an unchecking call. */ } #endif