# HG changeset patch # User truelight # Date 2006-08-24 15:36:25 # Node ID 536294846cd0bc5f47dff5c96ff625890b4d1785 # Parent 786c183a37a966be959e834d1e60afefb9c26e41 (svn r6097) -Fix: mingw and cygwin get / from Makefile, where \ is expected. Make exeption code for it (tnx for debug Frostregen) diff --git a/strgen/strgen.c b/strgen/strgen.c --- a/strgen/strgen.c +++ b/strgen/strgen.c @@ -1311,7 +1311,12 @@ int CDECL main(int argc, char* argv[]) if (_errors) return 1; /* get the targetfile, strip any directories and append to destination path */ +#if defined(__MINGW32__) || defined (__CYGWIN__) + /* Under mingw32 and cygwin, we enter / via the Makefile, not the expected \ */ + r = strrchr(argv[1], "/"); +#else r = strrchr(argv[1], PATHSEPCHAR); +#endif mkpath(pathbuf, lengthof(pathbuf), dest_dir, (r != NULL) ? &r[1] : argv[1]); /* rename the .txt (input-extension) to .lng */