projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
484d52f
)
com_err.c: Only check if stderr is a tty under Win32; Win16 does not
author
Richard Basch
<probe@mit.edu>
Fri, 14 Feb 1997 17:29:25 +0000
(17:29 +0000)
committer
Richard Basch
<probe@mit.edu>
Fri, 14 Feb 1997 17:29:25 +0000
(17:29 +0000)
even declare stderr. (win16/win32)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9864
dc483132
-0cff-0310-8789-
dd5450dbe970
src/util/et/com_err.c
patch
|
blob
|
history
diff --git
a/src/util/et/com_err.c
b/src/util/et/com_err.c
index 387458f9598fd594f349958654fd413774277567..0687827fac586663136ee3e4b28a35c084038f29 100644
(file)
--- a/
src/util/et/com_err.c
+++ b/
src/util/et/com_err.c
@@
-99,12
+99,14
@@
void KRB5_CALLCONV default_com_err_proc(ectx, priv, whoami, code, fmt, ap)
MacMessageBox(errbuf);
#else
/* For Windows */
+#ifdef _WIN32
if (_isatty(_fileno(stderr))) {
fputs(errbuf, stderr);
fputc('\r', stderr);
fputc('\n', stderr);
fflush(stderr);
} else
+#endif /* _WIN32 */
MessageBox ((HWND)NULL, errbuf, "Kerberos", MB_ICONEXCLAMATION);
#endif
}