# HG changeset patch # User tron # Date 1105957038 0 # Node ID 958032fed209276dd162710cf523a2bba2aebb2f # Parent 6573f8a2fb1d110387c4166b11c5a2a06a2c3190 (svn r1551) Silence a warning and simplify a preprocessor check diff -r 6573f8a2fb1d -r 958032fed209 unix.c --- a/unix.c Mon Jan 17 09:43:02 2005 +0000 +++ b/unix.c Mon Jan 17 10:17:18 2005 +0000 @@ -408,6 +408,7 @@ return num; } +#if defined(__BEOS__) || defined(__linux__) static void ChangeWorkingDirectory(char *exe) { char *s = strrchr(exe, '/'); @@ -417,6 +418,7 @@ *s = '/'; } } +#endif void ShowInfo(const char *str) { @@ -439,10 +441,7 @@ int CDECL main(int argc, char* argv[]) { // change the working directory to enable doubleclicking in UIs -#if defined(__BEOS__) - ChangeWorkingDirectory(argv[0]); -#endif -#if defined(__linux__) +#if defined(__BEOS__) || defined(__linux__) ChangeWorkingDirectory(argv[0]); #endif