Browse Source

cmDspClass.c:Added OS_X specific compilation for _cmDspParseArgV().

master
kevin 11 years ago
parent
commit
f118b68bb7
1 changed files with 14 additions and 2 deletions
  1. 14
    2
      dsp/cmDspClass.c

+ 14
- 2
dsp/cmDspClass.c View File

@@ -250,7 +250,11 @@ void* cmDspInstAllocate(
250 250
   return p;
251 251
 }
252 252
 
253
+#ifdef OS_X
253 254
 va_list  _cmDspParseArgV( cmDspVarArg_t* a, va_list vl )
255
+#else
256
+void  _cmDspParseArgV( cmDspVarArg_t* a, va_list vl )
257
+#endif
254 258
 {
255 259
   a->label   = va_arg(vl,const char*);
256 260
   a->constId = va_arg(vl,unsigned);
@@ -258,7 +262,9 @@ va_list  _cmDspParseArgV( cmDspVarArg_t* a, va_list vl )
258 262
   a->cn      = va_arg(vl,unsigned);
259 263
   a->flags   = va_arg(vl,unsigned);
260 264
   a->doc     = va_arg(vl,const char*);  
265
+#ifdef OS_X
261 266
   return vl;
267
+#endif
262 268
 }
263 269
 
264 270
 void* cmDspInstAllocateV(cmDspCtx_t* ctx, cmDspClass_t* classPtr, unsigned instByteCnt, unsigned instSymId, unsigned instId, unsigned storeSymId, unsigned va_cnt, va_list vl0, ... )
@@ -279,7 +285,10 @@ void* cmDspInstAllocateV(cmDspCtx_t* ctx, cmDspClass_t* classPtr, unsigned instB
279 285
     
280 286
     argCnt += repeatCnt;
281 287
 
282
-    vl1 = _cmDspParseArgV(&a,vl1);
288
+#ifdef OS_X
289
+    vl1 = 
290
+#endif
291
+      _cmDspParseArgV(&a,vl1);
283 292
   }
284 293
   
285 294
   cmDspVarArg_t aa[ argCnt+1 ];
@@ -288,7 +297,10 @@ void* cmDspInstAllocateV(cmDspCtx_t* ctx, cmDspClass_t* classPtr, unsigned instB
288 297
   {
289 298
     cmDspVarArg_t a;
290 299
     
291
-    vl2 = _cmDspParseArgV(&a,vl2);
300
+#ifdef OS_X
301
+    vl2 = 
302
+#endif
303
+      _cmDspParseArgV(&a,vl2);
292 304
     
293 305
     cmDspArgSetupN(ctx,aa,argCnt,j,repeatCnt,a.label,a.constId,a.rn, a.cn, a.flags, a.doc ); 
294 306
     j += repeatCnt;

Loading…
Cancel
Save