# HG changeset patch # User truelight # Date 1156433785 0 # Node ID 4d5e8f9d6f31dd2d2f069d7d5017ab9fec17118b # Parent 28ce2bc97a5f504b034a96230e4f64847703fe28 (svn r6097) -Fix: mingw and cygwin get / from Makefile, where \ is expected. Make exeption code for it (tnx for debug Frostregen) diff -r 28ce2bc97a5f -r 4d5e8f9d6f31 strgen/strgen.c --- a/strgen/strgen.c Thu Aug 24 15:21:09 2006 +0000 +++ b/strgen/strgen.c Thu Aug 24 15:36:25 2006 +0000 @@ -1311,7 +1311,12 @@ 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 */