Changeset 478:c3bd8d4a9e4d in roaraudio


Ignore:
Timestamp:
08/13/08 00:21:23 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

build dummy roarvorbis in case no libvorbisfile found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarvorbis.c

    r132 r478  
    66#include <stdlib.h> 
    77#include <math.h> 
     8#ifdef ROAR_HAVE_LIBVORBISFILE 
    89#include <vorbis/codec.h> 
    910#include <vorbis/vorbisfile.h> 
     11#endif 
    1012 
    1113#ifdef _WIN32 
     
    2830 
    2931 
     32#ifdef ROAR_HAVE_LIBVORBISFILE 
    3033FILE * open_http (char * file) { 
    3134 char cmd[1024]; 
     
    104107} 
    105108 
     109#endif 
     110 
    106111int main (int argc, char * argv[]) { 
     112#ifndef ROAR_HAVE_LIBVORBISFILE 
     113 printf(stderr, "Error: no Vorbis support!\n"); 
     114 return 1; 
     115#else 
    107116 char * server   = NULL; 
    108117 char * file     = NULL; 
     
    196205 
    197206 return 0; 
     207#endif 
    198208} 
    199209 
Note: See TracChangeset for help on using the changeset viewer.