1 // Module:  Log4CPLUS
 2 // File:    fstreams.h
 3 // Created: 4/2003
 4 // Author:  Tad E. Smith
 5 //
 6 //
 7 // Copyright (C) Tad E. Smith  All rights reserved.
 8 //
 9 // This software is published under the terms of the Apache Software
10 // License version 1.1, a copy of which has been included with this
11 // distribution in the LICENSE.APL file.
12 //
13 
14 /** @file */
15 
16 #ifndef LOG4CPLUS_FSTREAMS_HEADER_
17 #define LOG4CPLUS_FSTREAMS_HEADER_
18 
19 #include <log4cplus/config.h>
20 
21 #include <fstream>
22 
23 #if defined(__DECCXX) && !defined(__USE_STD_IOSTREAM)
24 #  define LOG4CPLUS_FSTREAM_NAMESPACE
25 #else
26 #  define LOG4CPLUS_FSTREAM_NAMESPACE std
27 #endif
28 
29 
30 #ifdef UNICODE
31     namespace log4cplus {
32         typedef LOG4CPLUS_FSTREAM_NAMESPACE::wofstream tofstream;
33         typedef LOG4CPLUS_FSTREAM_NAMESPACE::wifstream tifstream;
34     }
35 #else
36     namespace log4cplus {
37         typedef LOG4CPLUS_FSTREAM_NAMESPACE::ofstream tofstream;
38         typedef LOG4CPLUS_FSTREAM_NAMESPACE::ifstream tifstream;
39     }
40 #endif // UNICODE
41 
42 #endif // LOG4CPLUS_FSTREAMS_HEADER_


syntax highlighted by Code2HTML, v. 0.9.1