summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-08-26 19:39:59 -0400
committerDavid Robillard <d@drobilla.net>2016-08-26 19:39:59 -0400
commitcc1d9d324d6744df6039b2e21ac49cb8fd985959 (patch)
treecf571e0f843afa2eb4b2243ccdb35e3da7fd71ef /test
parent17d76be0daa76ad60009fdcfbcae089ccfff6e90 (diff)
downloadlilv-cc1d9d324d6744df6039b2e21ac49cb8fd985959.tar.gz
lilv-cc1d9d324d6744df6039b2e21ac49cb8fd985959.tar.bz2
lilv-cc1d9d324d6744df6039b2e21ac49cb8fd985959.zip
Fix compilation with C++
Diffstat (limited to 'test')
-rw-r--r--test/lilv_test.c4
-rw-r--r--test/missing_descriptor.lv2/missing_descriptor.c2
2 files changed, 3 insertions, 3 deletions
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";