Commit 3e2af348 authored by Eli Zaretskii's avatar Eli Zaretskii

Support invocation of un-installed runemacs.exe.

parent 721c9e8a
2013-05-17 Eli Zaretskii <eliz@gnu.org>
* runemacs.c (WinMain): Support invocation of un-installed
nt/runemacs.exe, by looking for src/emacs.exe.
2013-05-16 Eli Zaretskii <eliz@gnu.org>
* inc/stdint.h (SIZE_MAX) [!__GNUC__]: Define. (Bug#14409)
......
......@@ -75,6 +75,11 @@ WinMain (HINSTANCE hSelf, HINSTANCE hPrev, LPSTR cmdline, int nShow)
/* Quote executable name in case of spaces in the path. */
*new_cmdline = '"';
strcpy (new_cmdline + 1, modname);
/* Detect and handle un-installed runemacs.exe in nt/ subdirectory,
while emacs.exe is in src/. */
if ((p = strrchr (new_cmdline, '\\')) != NULL
&& stricmp (p, "\\nt") == 0)
strcpy (p, "\\src");
#ifdef CHOOSE_NEWEST_EXE
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment