Commit b14d8a68 authored by sewardj's avatar sewardj
Browse files

[project @ 2000-03-23 10:53:26 by sewardj]

storage.h needs to see a machine-dependant file-timestamp type for
use in Module symbol table entries -- hence this file.
parent 11a7a240
#ifndef MACHDEP_TIME_INCLUDED
#define MACHDEP_TIME_INCLUDED
#ifdef HAVE_TIME_H
# include <time.h>
#endif
#if RISCOS
typedef struct { unsigned hi, lo; } Time;
#define timeChanged(now,thn) (now.hi!=thn.hi || now.lo!=thn.lo)
#define timeSet(var,tm) var.hi = tm.hi; var.lo = tm.lo
#error firstTimeIsLater, whicheverIsLater needs implementing
#else
typedef time_t Time;
#define timeChanged(now,thn) (now!=thn)
#define timeSet(var,tm) var = tm
#define firstTimeIsLater(t1,t2) ((t1)>(t2))
#define whicheverIsLater(t1,t2) (((t1)>(t2)) ? (t1) : (t2))
#endif
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment