Changeset a3e24ec


Ignore:
Timestamp:
Aug 14, 2005, 3:59:32 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:
855ed0a
Parents:
427be71
Message:

added non c99 alternatives in examples/utils.h (thanks Mo)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/utils.h

    r427be71 ra3e24ec  
    2727#include <aubioext.h>
    2828
    29 #define debug(...) if (verbose) fprintf (stderr, __VA_ARGS__)
    30 #define errmsg(...) fprintf (stderr, __VA_ARGS__)
    31 #define outmsg(...) fprintf (stdout, __VA_ARGS__)
     29#ifdef HAVE_C99_VARARGS_MACROS
     30#define debug(...)              if (verbose) fprintf (stderr, __VA_ARGS__)
     31#define errmsg(...)             fprintf (stderr, __VA_ARGS__)
     32#define outmsg(...)             fprintf (stdout, __VA_ARGS__)
     33#else
     34#define debug(format, args...)  if (verbose) fprintf(stderr, format , ##args)
     35#define errmsg(format, args...) fprintf(stderr, format , ##args)
     36#define outmsg(format, args...) fprintf(stdout, format , ##args)
     37#endif
     38
    3239
    3340extern int frames;
Note: See TracChangeset for help on using the changeset viewer.