Ignore:
Timestamp:
Jan 11, 2004, 2:45:57 AM (18 years ago)
Author:
Sam Hocevar
Message:
  • configure.ac: + Check for gettimeofday().
  • src/time.c: + Created _caca_time(). + Ported _caca_getticks() to the Win32 API.
  • src/caca.c: + Properly builds on Win32.
  • test/event.c: + Added <stdlib.h> because we use malloc().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/io.c

    r332 r335  
    4848#   include <X11/keysym.h>
    4949#endif
    50 
    51 #include <unistd.h>
     50#if defined(USE_WIN32)
     51#   include <windows.h>
     52#endif
    5253
    5354#include "caca.h"
     
    122123            return event;
    123124
    124 #if defined(HAVE_USLEEP)
    125         usleep(10000);
    126 #elif defined(HAVE_SLEEP)
    127         Sleep(10);
    128 #else
    129         SLEEP
    130 #endif
     125        _caca_sleep(10000);
    131126    }
    132127}
     
    543538    else
    544539#endif
     540#if defined(USE_WIN32)
     541    if(_caca_driver == CACA_DRIVER_WIN32)
     542    {
     543        return CACA_EVENT_NONE;
     544    }
     545    else
     546#endif
    545547    {
    546548        /* Dummy */
Note: See TracChangeset for help on using the changeset viewer.