Changeset 2579:d5c092266261 in roaraudio


Ignore:
Timestamp:
09/06/09 01:54:34 (10 years ago)
Author:
phi
Branch:
default
Message:

test for type of function

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • configure

    r2578 r2579  
    12211221test_func_defmake ROAR_HAVE_GETSERVBYNAME   getservbyname   'getservbyname((void*)0, (void*)0)' -- netdb.h 
    12221222 
     1223echo -n 'checking for type of pa_path_get_filename()... ' 
     1224echo '#include <pulse/pulseaudio.h>'  >  $TF_C 
     1225echo '#include <pulse/simple.h>'     >> $TF_C 
     1226echo '#include <string.h>'           >> $TF_C 
     1227echo 'int main (void) { return 0; } const char *pa_path_get_filename(const char *p) { return NULL; }'  >> $TF_C 
     1228 
     1229if $CCTF 2> /dev/null; 
     1230then 
     1231 echo '#define ROAR_HAVE_TYPE_PA_PATH_GET_FILENAME const char *' >&3 
     1232 echo 'const char *' 
     1233else 
     1234 echo '#define ROAR_HAVE_TYPE_PA_PATH_GET_FILENAME char *' >&3 
     1235 echo 'char *' 
     1236fi 
     1237 
    12231238echo -n 'checking for safe 32 bit integer overflow... ' 
    12241239 
  • libroarpulse/util.c

    r2577 r2579  
    5959// some versions declare this as const char * f(...) 
    6060// and newer(?) versions as char * f(...)... 
    61 const char *pa_path_get_filename(const char *p) { 
     61ROAR_HAVE_TYPE_PA_PATH_GET_FILENAME pa_path_get_filename(const char *p) { 
    6262 char * r; 
    6363 
Note: See TracChangeset for help on using the changeset viewer.