Changeset 1103:bb5ee2384821 in roaraudio for roarclients/roarsin.c


Ignore:
Timestamp:
01/11/09 02:12:30 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

disable options needing libm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarsin.c

    r888 r1103  
    2323 */ 
    2424 
     25#include <roaraudio.h>  /* libroar */ 
     26 
     27#ifdef ROAR_HAVE_LIBM 
     28 
    2529#include <math.h>       /* sin() */ 
    2630#include <stdio.h>      /* *printf*() */ 
    27 #include <roaraudio.h>  /* libroar */ 
    2831 
    2932double rect (double x) { 
     
    123126} 
    124127 
     128#else 
     129int main (void) { 
     130 fprintf(stderr, "Error: No Math library support compiled in.\n"); 
     131 return 1; 
     132} 
     133#endif 
     134 
    125135//ll 
Note: See TracChangeset for help on using the changeset viewer.