summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2009-11-09 15:16:38 +0000
committerglx <glx@openttd.org>2009-11-09 15:16:38 +0000
commit85a910f02e6dd835354d11353f27f99e56ff4f1e (patch)
tree249ea63540ad71b9c66f5b23e96b88f3b470b237 /src
parent860b9b1cead825da2dfc109858f8f134f973f62d (diff)
downloadopenttd-85a910f02e6dd835354d11353f27f99e56ff4f1e.tar.xz
(svn r18029) -Fix (r18028): AppendPathSeparator() should stay global
Diffstat (limited to 'src')
-rw-r--r--src/fileio.cpp2
-rw-r--r--src/fileio_func.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index 858ac5abb..6658955a9 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -436,7 +436,7 @@ void FioCreateDirectory(const char *name)
* @param buf string to append the separator to
* @param buflen the length of the buf
*/
-static void AppendPathSeparator(char *buf, size_t buflen)
+void AppendPathSeparator(char *buf, size_t buflen)
{
size_t s = strlen(buf);
diff --git a/src/fileio_func.h b/src/fileio_func.h
index 4b42e4908..b2d2da803 100644
--- a/src/fileio_func.h
+++ b/src/fileio_func.h
@@ -57,6 +57,7 @@ char *FioAppendDirectory(char *buf, size_t buflen, Searchpath sp, Subdirectory s
char *FioGetDirectory(char *buf, size_t buflen, Subdirectory subdir);
void SanitizeFilename(char *filename);
+void AppendPathSeparator(char *buf, size_t buflen);
void DeterminePaths(const char *exe);
void *ReadFileToMem(const char *filename, size_t *lenp, size_t maxsize);
bool FileExists(const char *filename);