delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/05/23/19:44:31

From: Eric Backus <ericb AT lsid DOT hp DOT com>
Subject: Re: gettimeofday()
To: fano AT norcov DOT com
Date: Mon, 23 May 94 15:57:12 PDT
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp)
Mailer: Elm [revision: 70.85]

Dr. Norman Fahrer wrote:
> Eric Backus wrote:
> > I notice that gettimeofday() is not declared in any header file.  This
> > function IS implemented in djgpp, it is useful, and it is found on
> > many UNIX systems.  I suggest we add a declaration for it.
> > 
> > I'd put it in /djgpp/include/sys/time.h, since this header file
> > declares the structures used by gettimeofday().  If you add this,
> > don't forget to add the #ifdef __cplusplus stuff around it.
> 
>       Would you mind sending my the line(s) that you added ?
>       I am not very familiar with structure of these .h files
>       and don't want to spoil it.

Put this near the end of the file, after the structures are declared:


#ifdef	__cplusplus
extern "C" {
#endif

extern int gettimeofday(struct timeval *, struct timezone *);

#ifdef	__cplusplus
}
#endif


--
				Eric Backus
				ericb AT lsid DOT hp DOT com
				(206) 335-2495

- Raw text -


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