[vala/wip/ci: 1/9] codegen: Include <string.h> for memcpy usage in _vala_memdup2()
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/ci: 1/9] codegen: Include <string.h> for memcpy usage in _vala_memdup2()
- Date: Mon, 8 Feb 2021 08:30:58 +0000 (UTC)
commit 1b81926eecb2ec4678486596d4edce7170a32fe0
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Feb 8 09:27:31 2021 +0100
codegen: Include <string.h> for memcpy usage in _vala_memdup2()
codegen/valaccodebasemodule.vala | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index d12e038f2..1b67a7172 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -760,6 +760,8 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
void append_vala_memdup2 () {
// g_malloc
cfile.add_include ("glib.h");
+ // memcpy
+ cfile.add_include ("string.h");
var fun = new CCodeFunction ("_vala_memdup2", "gpointer");
fun.modifiers = CCodeModifiers.STATIC | CCodeModifiers.INLINE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]