# HG changeset patch # User jwe # Date 1191520318 0 # Node ID cc712c4179436e5860f316f18871f4d25c083de3 # Parent 4aef2ca14cf97f4de1a83ac64f135e9f76179c61 [project @ 2007-10-04 17:51:57 by jwe] diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2007-10-04 John W. Eaton + + * sysdep.cc (w32_set_quiet_shutdown, MINGW_signal_cleanup): Now static. + (w32_set_octave_home, w32_set_quiet_shutdown, MINGW_signal_cleanup): + Only define if defined (__WIN32__) && ! defined (_POSIX_VERSION). + 2007-10-04 Jason Riedy * ls-mat5.cc (read_mat5_binary_data): Map miUTF16 to miUINT16, diff --git a/src/sysdep.cc b/src/sysdep.cc --- a/src/sysdep.cc +++ b/src/sysdep.cc @@ -109,10 +109,10 @@ } #endif +#if defined (__WIN32__) && ! defined (_POSIX_VERSION) static void w32_set_octave_home (void) { -#if defined (__WIN32__) && ! defined (_POSIX_VERSION) int n = 1024; std::string bin_dir (n, '\0'); @@ -141,23 +141,19 @@ if (pos != NPOS) octave_env::putenv ("OCTAVE_HOME", bin_dir.substr (0, pos)); } -#endif } -void +static void w32_set_quiet_shutdown (void) { -#if defined (__WIN32__) && ! defined (_POSIX_VERSION) // Let the user close the console window or shutdown without the // pesky dialog. // // FIXME -- should this be user configurable? SetProcessShutdownParameters (0x280, SHUTDOWN_NORETRY); -#endif } -#if defined (__WIN32__) && ! defined (_POSIX_VERSION) -void +static void MINGW_signal_cleanup (void) { w32_set_quiet_shutdown ();