home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / cbm / os-include.lha / os-include / devices / timer.h.diff < prev    next >
Text File  |  1994-02-13  |  939b  |  44 lines

  1. *** timer.h.orig    Thu Sep 24 13:31:04 1992
  2. --- timer.h    Thu Dec 23 15:18:30 1993
  3. ***************
  4. *** 13,18 ****
  5. --- 13,27 ----
  6.   #include <exec/types.h>
  7.   #include <exec/io.h>
  8.   
  9. + /* This is somewhat misleading.  It's really not a GNU C dependency,
  10. +    it is a dependency on using ixemul.library and the associated libc.a
  11. +    and include files.  But there is currently no easy way to differentiate
  12. +    the use of GNU C from the intent to use ixemul.library.   -fnf */
  13. + #ifdef __GNUC__
  14. + #include <sys/time.h>
  15. + #endif
  16.   /* unit defintions */
  17.   #define UNIT_MICROHZ    0
  18.   #define UNIT_VBLANK    1
  19. ***************
  20. *** 22,31 ****
  21. --- 31,50 ----
  22.   
  23.   #define TIMERNAME    "timer.device"
  24.   
  25. + #ifndef __GNUC__
  26.   struct timeval {
  27.       ULONG tv_secs;
  28.       ULONG tv_micro;
  29.   };
  30. + #else
  31. + /* Use the definition in sys/time.h */
  32. + #define tv_secs  tv_sec
  33. + #define tv_micro tv_usec
  34. + #endif
  35.   
  36.   struct EClockVal {
  37.       ULONG ev_hi;
  38.