From af7328e4d7fde6e3eaed182c90adce07bbc1ebc6 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 31 Oct 2013 20:09:46 -0700 Subject: [PATCH] cmDspClass.c : Added OSX 10.5 (OSX_VER_10_5) conditional compilation blocks. --- dsp/cmDspClass.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/dsp/cmDspClass.c b/dsp/cmDspClass.c index f33888b..2d52c92 100644 --- a/dsp/cmDspClass.c +++ b/dsp/cmDspClass.c @@ -250,7 +250,11 @@ void* cmDspInstAllocate( return p; } -void _cmDspParseArgV( cmDspVarArg_t* a, va_list vl ) +#ifdef OSX_VER_10_5 +va_list _cmDspParseArgV( cmDspVarArg_t* a, va_list vl ) +#else +void _cmDspParseArgV( cmDspVarArg_t* a, va_list vl ) +#endif { a->label = va_arg(vl,const char*); a->constId = va_arg(vl,unsigned); @@ -258,6 +262,9 @@ void _cmDspParseArgV( cmDspVarArg_t* a, va_list vl ) a->cn = va_arg(vl,unsigned); a->flags = va_arg(vl,unsigned); a->doc = va_arg(vl,const char*); +#ifdef OSX_VER_10_5 + return vl; +#endif } @@ -279,6 +286,9 @@ void* cmDspInstAllocateV(cmDspCtx_t* ctx, cmDspClass_t* classPtr, unsigned instB argCnt += repeatCnt; +#ifdef OSX_VER_10_5 + vl1 = +#endif _cmDspParseArgV(&a,vl1); } @@ -289,7 +299,10 @@ void* cmDspInstAllocateV(cmDspCtx_t* ctx, cmDspClass_t* classPtr, unsigned instB while( (repeatCnt = va_arg(vl2,int)) != 0 ) { cmDspVarArg_t a; - + +#ifdef OSX_VER_10_5 + vl2 = +#endif _cmDspParseArgV(&a,vl2); cmDspArgSetupN(ctx,aa,argCnt,j,repeatCnt,a.label,a.constId,a.rn, a.cn, a.flags, a.doc );