Fixed a C11 warning by adding a macro lock around blip_t declaration

CQTexperiment
Chris Moeller 2013-10-04 13:11:04 -07:00
parent 71e05cd4b6
commit 121d7a73e9
2 changed files with 6 additions and 0 deletions

View File

@ -679,7 +679,10 @@ typedef struct DUMB_VOLUME_RAMP_INFO DUMB_VOLUME_RAMP_INFO;
typedef void (*DUMB_RESAMPLE_PICKUP)(DUMB_RESAMPLER *resampler, void *data);
#ifndef BLIP_T_DEFINED
#define BLIP_T_DEFINED
typedef struct blip_t blip_t;
#endif
struct DUMB_RESAMPLER
{

View File

@ -11,7 +11,10 @@ Sample buffer that resamples from input clock rate to output sample rate */
/** First parameter of most functions is blip_t*, or const blip_t* if nothing
is changed. */
#ifndef BLIP_T_DEFINED
#define BLIP_T_DEFINED
typedef struct blip_t blip_t;
#endif
/** Creates new buffer that can hold at most sample_count samples. Sets rates
so that there are blip_max_ratio clocks per sample. Returns pointer to new