Mercurial > hg > xemacs-beta
diff src/editfns.c @ 4736:d261888e5069
Fix Win32 native build after my DEFAULT_DIRECTORY_FALLBACK change, thanks Vin!
src/ChangeLog addition:
2009-11-09 Aidan Kehoe <kehoea@parhasard.net>
* sysfile.h (DEFAULT_DIRECTORY_FALLBACK):
Move the WIN32_NATIVE definition inside the #ifdef emacs
conditional, clear up the comment after #else; thanks for the
build failure report, Vin!
Cast DEFAULT_DIRECTORY_FALLBACK to (const CIbyte *) by default,
which better reflects its contents.
* editfns.c (get_home_directory):
* buffer.c (init_initial_directory):
Cast DEFAULT_DIRECTORY_FALLBACK to (Ibyte *) with functions that
take that type, now that is necessary.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Mon, 09 Nov 2009 18:00:10 +0000 |
parents | a5210e70ffbe |
children | b3ea9c582280 |
line wrap: on
line diff
--- a/src/editfns.c Mon Nov 09 09:21:59 2009 -0700 +++ b/src/editfns.c Mon Nov 09 18:00:10 2009 +0000 @@ -868,7 +868,8 @@ Using "/" isn't quite right, but what should we do? We probably should try to extract pw_dir from /etc/passwd, before falling back to this. */ - cached_home_directory = qxestrdup (DEFAULT_DIRECTORY_FALLBACK); + cached_home_directory + = qxestrdup ((const Ibyte *)DEFAULT_DIRECTORY_FALLBACK); output_home_warning = 1; } }