diff options
author | Alvarito050506 <donfrutosgomez@gmail.com> | 2022-01-17 16:00:16 -0300 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2022-01-18 07:40:43 +0100 |
commit | 78da97b73e4f4f0c82e8fe3fe81ba9971c999e06 (patch) | |
tree | ad2ea7591899760327ab559e8e9c65c9c76cc158 /codegen/valaccodemethodcallmodule.vala | |
parent | 45fe8523ad392f1aaa0f24d83b63e91774938775 (diff) | |
download | vala-78da97b73e4f4f0c82e8fe3fe81ba9971c999e06.tar.gz |
codegen: Avoid symbol clashes with "va_*" from "stdarg.h"
A few more symbol clashes with the va_* macros from stdarg.h, that seem to
happen only in some systems, like Alpine Linux or NetBSD.
Diffstat (limited to 'codegen/valaccodemethodcallmodule.vala')
-rw-r--r-- | codegen/valaccodemethodcallmodule.vala | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala index d7ac3f4b0..1e0b3ad95 100644 --- a/codegen/valaccodemethodcallmodule.vala +++ b/codegen/valaccodemethodcallmodule.vala @@ -1083,11 +1083,11 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule { ccode.add_declaration ("va_list", new CCodeVariableDeclarator ("ap")); ccode.add_declaration ("char*", new CCodeVariableDeclarator ("result")); - var va_start = new CCodeFunctionCall (new CCodeIdentifier ("va_start")); - va_start.add_argument (new CCodeIdentifier ("ap")); - va_start.add_argument (new CCodeIdentifier ("format")); + var vastart = new CCodeFunctionCall (new CCodeIdentifier ("va_start")); + vastart.add_argument (new CCodeIdentifier ("ap")); + vastart.add_argument (new CCodeIdentifier ("format")); - ccode.add_expression (va_start); + ccode.add_expression (vastart); if (context.profile == Profile.POSIX) { cfile.add_include ("stdio.h"); @@ -1111,11 +1111,11 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule { ccode.add_assignment (new CCodeIdentifier ("result"), malloc); - va_start = new CCodeFunctionCall (new CCodeIdentifier ("va_start")); - va_start.add_argument (new CCodeIdentifier ("ap")); - va_start.add_argument (new CCodeIdentifier ("format")); + vastart = new CCodeFunctionCall (new CCodeIdentifier ("va_start")); + vastart.add_argument (new CCodeIdentifier ("ap")); + vastart.add_argument (new CCodeIdentifier ("format")); - ccode.add_expression (va_start); + ccode.add_expression (vastart); vsnprintf = new CCodeFunctionCall (new CCodeIdentifier ("vsnprintf")); vsnprintf.add_argument (new CCodeIdentifier ("result")); |