]> git.lyx.org Git - lyx.git/blob - src/LString.h
bdb5512c0165697dab580c4e564c7cfcf4dce8d5
[lyx.git] / src / LString.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  * 
5  *           LyX, The Document Processor
6  *       
7  *          Copyright (C) 1995 Matthias Ettrich
8  *          Copyright (C) 1995-1999 The LyX Team.
9  *
10  * ====================================================== */
11
12 #ifndef LSTRING_H
13 #define LSTRING_H 
14
15 #ifndef USE_INCLUDED_STRING
16 #include <string>
17 using std::string;
18 #else
19 #include "support/lyxstring.h"
20 typedef lyxstring string;
21 #if defined(USING_EXCEPTIONS) && defined(HAVE_STL_STRING_FWD_H)
22 // Hide the forward declaration of string by SGI's STL > 3.13. But only when
23 // exceptions are in use.
24 // Due to a clash with SGI's forward declaration of string we have to provide
25 // __get_c_string() ourselves since SGI expects it to exist and block
26 // their string declarations as best we can.  ARRae.
27 # define __SGI_STL_STRING_FWD_H
28 static const char* __get_c_string(const string&);
29 #endif // HAVE_STL_STRING_FWD_H
30 #endif
31 #endif