From cc1d9d324d6744df6039b2e21ac49cb8fd985959 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 26 Aug 2016 19:39:59 -0400 Subject: Fix compilation with C++ --- test/lilv_test.c | 4 ++-- test/missing_descriptor.lv2/missing_descriptor.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/lilv_test.c b/test/lilv_test.c index dac3f4a..fb2b974 100644 --- a/test/lilv_test.c +++ b/test/lilv_test.c @@ -2095,7 +2095,7 @@ test_replace_version(void) LilvNode* minor = NULL; LilvNode* micro = NULL; - char* old_bundle_path = malloc(strlen(LILV_TEST_DIR) + 32); + char* old_bundle_path = (char*)malloc(strlen(LILV_TEST_DIR) + 32); strcpy(old_bundle_path, LILV_TEST_DIR); strcat(old_bundle_path, "old_version.lv2/"); @@ -2115,7 +2115,7 @@ test_replace_version(void) lilv_node_free(micro); lilv_node_free(minor); - char* new_bundle_path = malloc(strlen(LILV_TEST_DIR) + 32); + char* new_bundle_path = (char*)malloc(strlen(LILV_TEST_DIR) + 32); strcpy(new_bundle_path, LILV_TEST_DIR); strcat(new_bundle_path, "new_version.lv2/"); diff --git a/test/missing_descriptor.lv2/missing_descriptor.c b/test/missing_descriptor.lv2/missing_descriptor.c index 0aa2050..2902850 100644 --- a/test/missing_descriptor.lv2/missing_descriptor.c +++ b/test/missing_descriptor.lv2/missing_descriptor.c @@ -17,4 +17,4 @@ #include "lv2/lv2plug.in/ns/lv2core/lv2.h" -LV2_SYMBOL_EXPORT const char* msg = "this is not the thing you're looking for"; +const char* msg = "this is not the thing you're looking for"; -- cgit v1.2.1