Initialise varargs list in the same way as OSF
authorPeter Howkins <flibble@users.sourceforge.net>
Mon, 12 Mar 2012 16:19:32 +0000 (16:19 +0000)
committerPeter Howkins <flibble@users.sourceforge.net>
Mon, 12 Mar 2012 16:19:32 +0000 (16:19 +0000)
cde/programs/dtappbuilder/src/abmf/stubs_c_file.c

index 6534e1fd9a2e847afc8c8e299fb573be0f21e02c..06007c22fa35fb6ea32b9a5236aaea817e53c97e 100644 (file)
@@ -279,7 +279,7 @@ printf_setval(GenCodeInfo genCodeInfo, ABObj obj, ...)
 {
     int                        return_value = 0;
     File               codeFile = genCodeInfo->code_file;
-#ifdef __osf__
+#if defined(__osf__) || defined(linux)
 /* OSF/1 define va_list in <va_list.h> as structure of char ** and int
  * Sun define va_list as void * */
     va_list             paramList = { NULL, 0 };