comparison 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
comparison
equal deleted inserted replaced
4735:80d74fed5399 4736:d261888e5069
866 { 866 {
867 /* Unix, typically. 867 /* Unix, typically.
868 Using "/" isn't quite right, but what should we do? 868 Using "/" isn't quite right, but what should we do?
869 We probably should try to extract pw_dir from /etc/passwd, 869 We probably should try to extract pw_dir from /etc/passwd,
870 before falling back to this. */ 870 before falling back to this. */
871 cached_home_directory = qxestrdup (DEFAULT_DIRECTORY_FALLBACK); 871 cached_home_directory
872 = qxestrdup ((const Ibyte *)DEFAULT_DIRECTORY_FALLBACK);
872 output_home_warning = 1; 873 output_home_warning = 1;
873 } 874 }
874 } 875 }
875 if (initialized && output_home_warning) 876 if (initialized && output_home_warning)
876 { 877 {