diff --git a/libmaxsi/io.cpp b/libmaxsi/io.cpp index 9d474a23..fa27b7b5 100644 --- a/libmaxsi/io.cpp +++ b/libmaxsi/io.cpp @@ -320,7 +320,7 @@ namespace Maxsi } // TODO: This is a hacky implementation of a stupid function. - char* mktemp(char* templ) + extern "C" char* mktemp(char* templ) { size_t templlen = strlen(templ); for ( size_t i = templlen-6UL; i < templlen; i++ )