summaryrefslogtreecommitdiff
path: root/ACE/ace/ETCL/ETCL_l.cpp.diff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2009-05-19 06:16:48 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2009-05-19 06:16:48 +0000
commit058cd2c9dd2a3437c14b04431bb6e5ed461d1c80 (patch)
tree8d2bc5f00d28a27b2f3c65d95e68d79ce0f55398 /ACE/ace/ETCL/ETCL_l.cpp.diff
parent7298727570f2ff4983d649fc441a9b3de5e653fc (diff)
downloadATCD-058cd2c9dd2a3437c14b04431bb6e5ed461d1c80.tar.gz
Tue May 19 06:14:05 2009 Johnny Willemsen <jwillemsen@remedy.nl>
* ace/OS_NS_stdio.h: * ace/OS_NS_stdio.inl: Added fileno wrapper which returns ACE_HANDLE. The CEGCC developers fixed their header files * ace/ETCL/ETCL_l.cpp: * ace/ETCL/ETCL_l.cpp.diff Use ACE_OS::fileno * ace/os_include/os_unistd.h: Removed obsolete casts for WinCE * ace/OS_NS_Thread.inl: Const changes
Diffstat (limited to 'ACE/ace/ETCL/ETCL_l.cpp.diff')
-rw-r--r--ACE/ace/ETCL/ETCL_l.cpp.diff4
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/ace/ETCL/ETCL_l.cpp.diff b/ACE/ace/ETCL/ETCL_l.cpp.diff
index 1dd981dd9d5..2948f90be4f 100644
--- a/ACE/ace/ETCL/ETCL_l.cpp.diff
+++ b/ACE/ace/ETCL/ETCL_l.cpp.diff
@@ -485,14 +485,14 @@
- b->yy_is_interactive = 0;
+#if defined (ACE_HAS_WINCE)
+ // Mimic the behavior as WinCE does not have isatty().
-+ if ((file != 0) && (file == (FILE*)fileno(file))) {
++ if ((file != 0) && (file == ACE_OS::fileno(file))) {
+ b->yy_is_interactive = 1;
+ }
+ else {
+ b->yy_is_interactive = 0;
+ }
#else
- b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
+ b->yy_is_interactive = file ? (ACE_OS::isatty( ACE_OS::fileno(file) ) > 0) : 0;
-#endif
-#endif
+#endif // ACE_HAS_WINCE