diff options
Diffstat (limited to 'engines/sludge/stringy.cpp')
-rw-r--r-- | engines/sludge/stringy.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/sludge/stringy.cpp b/engines/sludge/stringy.cpp index fdf4536da0..a5440b6c96 100644 --- a/engines/sludge/stringy.cpp +++ b/engines/sludge/stringy.cpp @@ -20,10 +20,13 @@ * */ #include "allfiles.h" -#include <string.h> - #include "newfatal.h" +#ifndef SLUDGE_STRINGY_H +#define SLUDGE_STRINGY_H + +namespace Sludge { + char *copyString(const char *copyMe) { char *newString = new char [strlen(copyMe) + 1]; if (! checkNew(newString)) return NULL; @@ -37,3 +40,7 @@ char *joinStrings(const char *s1, const char *s2) { sprintf(newString, "%s%s", s1, s2); return newString; } + +} // End of namespace Sludge + +#endif |