home *** CD-ROM | disk | FTP | other *** search
- *** old\time.c
- --- time.c
- **************
- *** 17,18
- #if ATARI_ST
- /* nothing is needed */
- --- 17,21 -----
- #if ATARI_ST
- + #ifdef __GNUC__
- + #include <time.h>
- + #endif
- /* nothing is needed */
- **************
- *** 112,113
- #if ATARI_ST
- struct tm {
- --- 115,117 -----
- #if ATARI_ST
- + #ifndef __GNUC__
- struct tm {
- **************
- *** 122,123
- long xclock;
- #endif /* ATARI_ST */
- --- 126,130 -----
- long xclock;
- + #else
- + time_t xclock;
- + #endif
- #endif /* ATARI_ST */
- **************
- *** 175,177
- #if ATARI_ST
- ! tbuf = localtime(&xclock);
- #endif /* ATARI_ST */
- --- 182,187 -----
- #if ATARI_ST
- ! #ifdef __GNUC__
- ! (void)time(&xclock);
- ! #endif
- ! tbuf = localtime(&xclock);
- #endif /* ATARI_ST */
- **************
- *** 231,232
- static long starttime;
- long time();
- --- 241,245 -----
- static long starttime;
- + #ifdef __GNUC__
- + long atime();
- + #else
- long time();
- **************
- *** 232,233
- long time();
- #endif /* AMIGA || ATARI_ST || OS2 */
- --- 245,247 -----
- long time();
- + #endif
- #endif /* AMIGA || ATARI_ST || OS2 */
- **************
- *** 281,282
- #if AMIGA || ATARI_ST || MSDOS || OS2
- time(&starttime); /* note: this obtains time in various units */
- --- 295,299 -----
- #if AMIGA || ATARI_ST || MSDOS || OS2
- + #ifdef __GNUC__
- + atime(&starttime); /* note: this obtains time in various units */
- + #else
- time(&starttime); /* note: this obtains time in various units */
- **************
- *** 282,283
- time(&starttime); /* note: this obtains time in various units */
- #endif /* AMIGA || ATARI_ST || MSDOS */
- --- 299,301 -----
- time(&starttime); /* note: this obtains time in various units */
- + #endif
- #endif /* AMIGA || ATARI_ST || MSDOS */
- **************
- *** 322,323
- #if ATARI_ST
- return (time(NULL) - starttime) / 10;
- --- 340,344 -----
- #if ATARI_ST
- + #ifdef __GNUC__
- + return (atime(NULL) - starttime) / 10;
- + #else
- return (time(NULL) - starttime) / 10;
- **************
- *** 323,324
- return (time(NULL) - starttime) / 10;
- #endif /* ATARI_ST */
- --- 344,346 -----
- return (time(NULL) - starttime) / 10;
- + #endif
- #endif /* ATARI_ST */
- *** old\makefile
- --- makefile
- **************
- *** 0,0
- --- 1,13 -----
- + CC=gcc
- + CFLAGS=-O -fstrength-reduce -fcombine-regs -fomit-frame-pointer
- +
- + OBJS = getopt.o long.o memory.o time.o
- +
- + all: $(OBJS)
- +
- + ###
- + getopt.o : getopt.c ..\h\config.h ..\h\define.h ..\h\proto.h cproto.h
- + long.o : long.c ..\h\config.h ..\h\define.h ..\h\proto.h cproto.h \
- + ..\h\cpuconf.h
- + memory.o : memory.c ..\h\config.h ..\h\define.h ..\h\proto.h cproto.h
- + time.o : time.c ..\h\config.h ..\h\define.h ..\h\proto.h cproto.h
-