From c54ba6a66a678fa7005ff00e6bd5dd0c0ac4ad9f Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Wed, 17 Sep 2008 09:50:44 +0000 Subject: [PATCH] fixed compilation issue git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1624 0778d3d1-df1d-0410-868b-ea421aaaa00d --- plugins/midi_import/portsmf/strparse.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/midi_import/portsmf/strparse.cpp b/plugins/midi_import/portsmf/strparse.cpp index 4c9a3529e..1245cc38d 100644 --- a/plugins/midi_import/portsmf/strparse.cpp +++ b/plugins/midi_import/portsmf/strparse.cpp @@ -1,3 +1,4 @@ +#include #include // #include -- for debugging (cout) #include "ctype.h" @@ -47,7 +48,7 @@ void String_parse::get_nonspace_quoted(string &field) } -char *escape_chars[] = {"\\n", "\\t", "\\\\", "\\r", "\\\""}; +char *escape_chars[] = { (char *) "\\n", (char *)"\\t", (char *)"\\\\", (char *)"\\r", (char *) "\\\""}; void string_escape(string &result, char *str, char *quote) @@ -58,7 +59,7 @@ void string_escape(string &result, char *str, char *quote) } for (int i = 0; i < length; i++) { if (!isalnum((unsigned char) str[i])) { - char *chars = "\n\t\\\r\""; + char *chars = (char *)"\n\t\\\r\""; char *special = strchr(chars, str[i]); if (special) { result.append(escape_chars[special - chars]);