Mail Archives: djgpp/1994/01/18/04:15:31
Hello DJ,
When <time.h> is included, a warning message is displayed due to the
changed <stddef.h> (2.5.7) in dj111m2.zip.
This warning can be removed by changing a single #ifdef in <time.h>.
Regards,
.^^^^^^^^ _____________________________________
| | / Pieter Kunst (P.J.) \
| _ _| / Philips Research Laboratories, \
.--(o)(o) / Building WY3, Prof. Holstlaan 4, \
|@ _) / 5656 AA Eindhoven, The Netherlands. |
| ,___| / e-mail: kunst AT prl DOT philips DOT nl /
| / \_______________________________________________/
/____\
-------------------------------------------------------------------------------
C:\>type test.c
#include <time.h>
int main ()
{
return 0;
}
C:\>gcc -c test.c
In file included from test.c:1:
c:/djgpp/include/time.h:47: warning: useless keyword or type name in empty decla
ration
c:/djgpp/include/time.h:47: warning: empty declaration
=========================== (part of) old time.h =============================
#ifndef _stddef_h
#ifdef _SIZE_T_
typedef _SIZE_T_ size_t;
#undef _SIZE_T_
#endif
#endif
=========================== (part of) new time.h =============================
#ifndef _STDDEF_H
#ifdef _SIZE_T_
typedef _SIZE_T_ size_t;
#undef _SIZE_T_
#endif
#endif
==============================================================================
- Raw text -