Changeset 3202:d72eef44e059 in roaraudio


Ignore:
Timestamp:
01/23/10 18:03:35 (10 years ago)
Author:
phi
Branch:
default
Message:

use test macros for sys/time.h and time.h

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroaresd/libroaresd.h

    r706 r3202  
    4242#include <roaraudio.h> 
    4343#include <esd.h> 
     44 
     45#ifdef ROAR_HAVE_H_SYS_TIME 
     46#include <sys/time.h> 
     47#endif 
     48#ifdef ROAR_HAVE_H_TIME 
    4449#include <time.h> 
    45 #include <sys/time.h> 
     50#endif 
    4651 
    4752#define ROAR_BC2ESD(b,c) (((b) == 8 ? ESD_BITS8 : ESD_BITS16) | ((c) == 1 ? ESD_MONO : ESD_STEREO)) 
  • roard/include/roard.h

    r3130 r3202  
    5353#endif 
    5454 
    55 #ifndef ROAR_TARGET_MICROCONTROLLER 
     55#ifdef ROAR_HAVE_H_SYS_TIME 
    5656#include <sys/time.h> 
     57#endif 
     58#ifdef ROAR_HAVE_H_TIME 
    5759#include <time.h> 
    5860#endif 
Note: See TracChangeset for help on using the changeset viewer.