Changeset 5215c01 for src


Ignore:
Timestamp:
Aug 9, 2005, 4:21:02 AM (19 years ago)
Author:
Paul Brossier <piem@altern.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
ccfafb2
Parents:
cad8783
Message:

add c99 varargs checks, thanks to Mo DeJong?

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/aubio_priv.h

    rcad8783 r5215c01  
    117117} aubio_status;
    118118
    119 #define AUBIO_ERR(...)                                                  fprintf(stderr,__VA_ARGS__)
    120 #define AUBIO_MSG(...)                                                  fprintf(stdout,__VA_ARGS__)
    121 #define AUBIO_DBG(...)                                                  fprintf(stderr,__VA_ARGS__)
    122 #define AUBIO_QUIT(_s)                                                  exit(_s)
    123 #define AUBIO_SPRINTF               sprintf
     119#ifdef HAVE_C99_VARARGS_MACROS
     120#define AUBIO_ERR(...)               fprintf(stderr,__VA_ARGS__)
     121#define AUBIO_MSG(...)               fprintf(stdout,__VA_ARGS__)
     122#define AUBIO_DBG(...)               fprintf(stderr,__VA_ARGS__)
     123#else
     124#define AUBIO_ERR(format, args...)   fprintf(stderr, format , ##args)
     125#define AUBIO_MSG(format, args...)   fprintf(stdout, format , ##args)
     126#define AUBIO_DBG(format, args...)   fprintf(stderr, format , ##args)
     127#endif
     128
     129#define AUBIO_QUIT(_s)               exit(_s)
     130#define AUBIO_SPRINTF                sprintf
    124131
    125132#endif/*_AUBIO_PRIV_H*/
  • src/config.h.in

    rcad8783 r5215c01  
    1212/* Define to enable fftw3 support */
    1313#undef FFTW3_SUPPORT
     14
     15/* Defined when c99 style varargs macros are supported */
     16#undef HAVE_C99_VARARGS_MACROS
    1417
    1518/* Define to 1 if you have the <complex.h> header file. */
Note: See TracChangeset for help on using the changeset viewer.