www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/01/18/04:15:31

From: kunst AT prl DOT philips DOT nl
Subject: <time.h> patch
To: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP users list)
Date: Tue, 18 Jan 1994 09:34:19 +0100 (MET)

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019