home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / language / icon8_fx / common.dif < prev    next >
Encoding:
Text File  |  1993-10-23  |  2.8 KB  |  115 lines

  1. *** old\time.c
  2. --- time.c
  3. **************
  4. *** 17,18
  5.   #if ATARI_ST
  6.      /* nothing is needed */
  7. --- 17,21 -----
  8.   #if ATARI_ST
  9. + #ifdef __GNUC__
  10. + #include <time.h>
  11. + #endif
  12.      /* nothing is needed */
  13. **************
  14. *** 112,113
  15.   #if ATARI_ST
  16.      struct tm {
  17. --- 115,117 -----
  18.   #if ATARI_ST
  19. + #ifndef __GNUC__
  20.      struct tm {
  21. **************
  22. *** 122,123
  23.      long xclock;
  24.   #endif                    /* ATARI_ST */
  25. --- 126,130 -----
  26.      long xclock;
  27. + #else
  28. +    time_t xclock;
  29. + #endif
  30.   #endif                    /* ATARI_ST */
  31. **************
  32. *** 175,177
  33.   #if ATARI_ST
  34. !     tbuf = localtime(&xclock);
  35.   #endif                    /* ATARI_ST */
  36. --- 182,187 -----
  37.   #if ATARI_ST
  38. ! #ifdef __GNUC__
  39. !    (void)time(&xclock);
  40. ! #endif
  41. !    tbuf = localtime(&xclock);
  42.   #endif                    /* ATARI_ST */
  43. **************
  44. *** 231,232
  45.      static long starttime;
  46.      long time();
  47. --- 241,245 -----
  48.      static long starttime;
  49. + #ifdef __GNUC__
  50. +    long atime();
  51. + #else
  52.      long time();
  53. **************
  54. *** 232,233
  55.      long time();
  56.   #endif                    /* AMIGA || ATARI_ST || OS2 */
  57. --- 245,247 -----
  58.      long time();
  59. + #endif
  60.   #endif                    /* AMIGA || ATARI_ST || OS2 */
  61. **************
  62. *** 281,282
  63.   #if AMIGA  || ATARI_ST || MSDOS || OS2
  64.         time(&starttime);    /* note: this obtains time in various units */
  65. --- 295,299 -----
  66.   #if AMIGA  || ATARI_ST || MSDOS || OS2
  67. + #ifdef __GNUC__
  68. +       atime(&starttime);    /* note: this obtains time in various units */
  69. + #else
  70.         time(&starttime);    /* note: this obtains time in various units */
  71. **************
  72. *** 282,283
  73.         time(&starttime);    /* note: this obtains time in various units */
  74.   #endif                    /* AMIGA || ATARI_ST || MSDOS */
  75. --- 299,301 -----
  76.         time(&starttime);    /* note: this obtains time in various units */
  77. + #endif
  78.   #endif                    /* AMIGA || ATARI_ST || MSDOS */
  79. **************
  80. *** 322,323
  81.   #if ATARI_ST
  82.         return (time(NULL) - starttime) / 10;
  83. --- 340,344 -----
  84.   #if ATARI_ST
  85. + #ifdef __GNUC__
  86. +       return (atime(NULL) - starttime) / 10;
  87. + #else
  88.         return (time(NULL) - starttime) / 10;
  89. **************
  90. *** 323,324
  91.         return (time(NULL) - starttime) / 10;
  92.   #endif                    /* ATARI_ST */
  93. --- 344,346 -----
  94.         return (time(NULL) - starttime) / 10;
  95. + #endif
  96.   #endif                    /* ATARI_ST */
  97. *** old\makefile
  98. --- makefile
  99. **************
  100. *** 0,0
  101. --- 1,13 -----
  102. + CC=gcc
  103. + CFLAGS=-O -fstrength-reduce -fcombine-regs -fomit-frame-pointer
  104. + OBJS = getopt.o long.o memory.o time.o
  105. + all: $(OBJS)
  106. + ###
  107. + getopt.o : getopt.c ..\h\config.h ..\h\define.h ..\h\proto.h  cproto.h 
  108. + long.o : long.c ..\h\config.h ..\h\define.h ..\h\proto.h cproto.h \
  109. +   ..\h\cpuconf.h 
  110. + memory.o : memory.c ..\h\config.h ..\h\define.h ..\h\proto.h cproto.h 
  111. + time.o : time.c ..\h\config.h ..\h\define.h ..\h\proto.h cproto.h 
  112.