X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLString.h;h=1e135594b319e992bc4e2ab19cd3ba86af47d77e;hb=501f1dd61b6c0beb927151ecf331f78848261b59;hp=25809cba739ad9778241ed418e950b78c39b7638;hpb=8283e978f8d621041c432b9b88a476bfd567385c;p=lyx.git diff --git a/src/LString.h b/src/LString.h index 25809cba73..1e135594b3 100644 --- a/src/LString.h +++ b/src/LString.h @@ -12,14 +12,19 @@ #ifndef LSTRING_H #define LSTRING_H +#if 0 #ifndef _CONFIG_H #error The header should always be included before LString.h #endif +#endif #ifndef USE_INCLUDED_STRING + #include using std::string; +#define STRCONV(STR) STR #else + #ifdef __STRING__ #error The header has been included before LString.h #else @@ -28,5 +33,7 @@ using std::string; #include "support/lyxstring.h" // using lyx::string; typedef lyxstring string; +#define STRCONV(STR) STR.c_str() #endif + #endif