X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLString.h;h=1e135594b319e992bc4e2ab19cd3ba86af47d77e;hb=501f1dd61b6c0beb927151ecf331f78848261b59;hp=ac5c6b878a92cc2b53868f9facb53a69e7a4938a;hpb=2266b53c87811c2fa23efb9cae024db54a3d4e76;p=lyx.git diff --git a/src/LString.h b/src/LString.h index ac5c6b878a..1e135594b3 100644 --- a/src/LString.h +++ b/src/LString.h @@ -19,9 +19,12 @@ #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 @@ -30,5 +33,7 @@ using std::string; #include "support/lyxstring.h" // using lyx::string; typedef lyxstring string; +#define STRCONV(STR) STR.c_str() #endif + #endif