Ignore:
Timestamp:
Mar 9, 2006, 1:47:37 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Added glue code to compile libcaca without a libc and build applications as multiboot kernels.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/time.c

    r536 r568  
    2020#include "config.h"
    2121
    22 #include <stdlib.h>
    23 #if defined(HAVE_SYS_TIME_H)
    24 #   include <sys/time.h>
    25 #endif
    26 #include <time.h>
    27 
    28 #if defined(USE_WIN32)
    29 #   include <windows.h>
    30 #endif
    31 
    32 #if defined(HAVE_UNISTD_H)
    33 #   include <unistd.h>
     22#if !defined(__KERNEL__)
     23#   include <stdlib.h>
     24#   if defined(HAVE_SYS_TIME_H)
     25#       include <sys/time.h>
     26#   endif
     27#   include <time.h>
     28#   if defined(USE_WIN32)
     29#       include <windows.h>
     30#   endif
     31#   if defined(HAVE_UNISTD_H)
     32#       include <unistd.h>
     33#   endif
    3434#endif
    3535
     
    4444        Sleep(usec / 1000);
    4545#else
    46         SLEEP
     46        /* SLEEP */
    4747#endif
    4848}
Note: See TracChangeset for help on using the changeset viewer.