]> git.lyx.org Git - features.git/blob - src/support/std_string.h
Replace LString.h with support/std_string.h,
[features.git] / src / support / std_string.h
1 // -*- C++ -*-
2 /**
3  * \file std_string.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  * \author Jean-Marc Lasgouttes
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef STD_STRING_H
14 #define STD_STRING_H
15
16 #if 0
17 #ifndef _CONFIG_H
18 #error The <config.h> header should always be included before std_string.h
19 #endif
20 #endif
21
22 #ifndef USE_INCLUDED_STRING
23
24 #include <string>
25 using std::string;
26 #define STRCONV(STR) STR
27 #else
28
29 #ifdef __STRING__
30 #error The <string> header has been included before std_string.h
31 #else
32 #define __STRING__
33 #endif
34 #include "support/lyxstring.h"
35 using lyx::string;
36 #define STRCONV(STR) STR.c_str()
37 #endif
38
39 #endif // NOT STD_STRING_H