mirror of https://github.com/OpenTTD/OpenTTD
(svn r17229) -Codechange: Coding style fixes.
parent
7fb95e2c2b
commit
0960f15c7e
|
@ -221,11 +221,12 @@ void ShowOSErrorBox(const char *buf, bool system)
|
||||||
* this is the native and nicest way to do this on OSX */
|
* this is the native and nicest way to do this on OSX */
|
||||||
ShowMacDialog( buf, "See readme for more info\nMost likely you are missing files from the original TTD", "Quit" );
|
ShowMacDialog( buf, "See readme for more info\nMost likely you are missing files from the original TTD", "Quit" );
|
||||||
#else
|
#else
|
||||||
/* all systems, but OSX */
|
/* All unix systems, except OSX. Only use escape codes on a TTY. */
|
||||||
if (isatty(fileno(stderr))) /* Only use escape codes on a TTY */
|
if (isatty(fileno(stderr))) {
|
||||||
fprintf(stderr, "\033[1;31mError: %s\033[0;39m\n", buf);
|
fprintf(stderr, "\033[1;31mError: %s\033[0;39m\n", buf);
|
||||||
else
|
} else {
|
||||||
fprintf(stderr, "Error: %s\n", buf);
|
fprintf(stderr, "Error: %s\n", buf);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue