delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/02/03/09:03:08

From: Paul Harness <gapa83 AT udcf DOT gla DOT ac DOT uk>
Subject: ftime problem solved
To: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp)
Date: Thu, 3 Feb 1994 13:01:49 +0000 (GMT)

Typical isn't it? I send off my question, and then realise what the
problem is. 

The ftime() problem is solved by including extern "C" in timeb.h as
follows: 

#include <sys/types.h>

struct timeb
{
    time_t		time;		/* Seconds since the epoch	*/
    unsigned short	millitm;
    short		timezone;
    short		dstflag;
};

#ifdef __cplusplus
extern "C" {
#endif
extern int	ftime(struct timeb *);
#ifdef __cplusplus
}
#endif



-- 
Paul Harness,                        |  Internet: gapa83 AT udcf DOT gla DOT ac DOT uk
Department of Physics and Astronomy, |
University of Glasgow,               |  Tel +44-41-339-8855 ext 8359
Glasgow, G12 8QQ, SCOTLAND.          |  Fax +44-41-334-9029

- Raw text -


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