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
   return p;
250
   return p;
251
 }
251
 }
252
 
252
 
253
+#ifdef OS_X
253
 va_list  _cmDspParseArgV( cmDspVarArg_t* a, va_list vl )
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
   a->label   = va_arg(vl,const char*);
259
   a->label   = va_arg(vl,const char*);
256
   a->constId = va_arg(vl,unsigned);
260
   a->constId = va_arg(vl,unsigned);
258
   a->cn      = va_arg(vl,unsigned);
262
   a->cn      = va_arg(vl,unsigned);
259
   a->flags   = va_arg(vl,unsigned);
263
   a->flags   = va_arg(vl,unsigned);
260
   a->doc     = va_arg(vl,const char*);  
264
   a->doc     = va_arg(vl,const char*);  
265
+#ifdef OS_X
261
   return vl;
266
   return vl;
267
+#endif
262
 }
268
 }
263
 
269
 
264
 void* cmDspInstAllocateV(cmDspCtx_t* ctx, cmDspClass_t* classPtr, unsigned instByteCnt, unsigned instSymId, unsigned instId, unsigned storeSymId, unsigned va_cnt, va_list vl0, ... )
270
 void* cmDspInstAllocateV(cmDspCtx_t* ctx, cmDspClass_t* classPtr, unsigned instByteCnt, unsigned instSymId, unsigned instId, unsigned storeSymId, unsigned va_cnt, va_list vl0, ... )
279
     
285
     
280
     argCnt += repeatCnt;
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
   cmDspVarArg_t aa[ argCnt+1 ];
294
   cmDspVarArg_t aa[ argCnt+1 ];
288
   {
297
   {
289
     cmDspVarArg_t a;
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
     cmDspArgSetupN(ctx,aa,argCnt,j,repeatCnt,a.label,a.constId,a.rn, a.cn, a.flags, a.doc ); 
305
     cmDspArgSetupN(ctx,aa,argCnt,j,repeatCnt,a.label,a.constId,a.rn, a.cn, a.flags, a.doc ); 
294
     j += repeatCnt;
306
     j += repeatCnt;

Loading…
Cancel
Save