summaryrefslogtreecommitdiff
path: root/rsc
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-02-02 18:12:59 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-02-02 18:12:59 +0000
commitbf8d8e9ade545632648f334b25b4dd861f450dba (patch)
tree14483104b199a8cbcd9a4482ea2e78c619d98a1f /rsc
parent4aaf344b7911e453521f225352c8581f359a3913 (diff)
INTEGRATION: CWS geordi2q14 (1.4.32); FILE MERGED
2004/01/28 15:49:17 hr 1.4.32.1: #111934#: merge CWS vcl7pp1r3
Diffstat (limited to 'rsc')
-rw-r--r--rsc/source/rscpp/cpp1.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/rsc/source/rscpp/cpp1.c b/rsc/source/rscpp/cpp1.c
index 071e2726a78e..7adecd1a72a1 100644
--- a/rsc/source/rscpp/cpp1.c
+++ b/rsc/source/rscpp/cpp1.c
@@ -2,9 +2,9 @@
*
* $RCSfile: cpp1.c,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: vg $ $Date: 2003-07-02 14:52:27 $
+ * last change: $Author: hr $ $Date: 2004-02-02 19:12:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -416,13 +416,14 @@ nRunde++;
cierror("Inside #ifdef block at end of input, depth = %d", i);
#endif
}
-/* alt: fclose(stdout); */
-
#if OSL_DEBUG_LEVEL > 1
- fclose( pDefOut );
+ if( pDefOut != stdout && pDefOut != stderr )
+ fclose( pDefOut );
#endif
- fclose( pCppOut );
- fclose( pCppIn );
+ if( pCppOut != stdout && pCppOut != stderr )
+ fclose( pCppOut );
+ if( pCppIn != stdin )
+ fclose( pCppIn );
if (errors > 0) {