From c1affdf6db43d9963ed73c43b8a042c302273ca6 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Mon, 5 Mar 2012 13:08:02 +0100 Subject: [PATCH] Added missing extern "C" linkages in libmaxsi/string.cpp. --- libmaxsi/string.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmaxsi/string.cpp b/libmaxsi/string.cpp index 6cd12f9b..37500a4f 100644 --- a/libmaxsi/string.cpp +++ b/libmaxsi/string.cpp @@ -192,7 +192,7 @@ namespace Maxsi } } - char* strpbrk(const char* str, const char* accept) + extern "C" char* strpbrk(const char* str, const char* accept) { size_t rejectlen = Reject(str, accept); if ( !str[rejectlen] ) { return NULL; } @@ -299,7 +299,7 @@ namespace Maxsi // TODO: This simple and hacky implementation runs in O(N^2) even though // this problem can be solved in O(N). - char* strstr(const char* haystack, const char* needle) + extern "C" char* strstr(const char* haystack, const char* needle) { if ( !needle[0] ) { return (char*) haystack; } for ( size_t i = 0; haystack[i]; i++ )