X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLString.h;h=1e135594b319e992bc4e2ab19cd3ba86af47d77e;hb=2523638092e2024bac408eee98ad2094bc4e4089;hp=f98bc7d9b5c9f85d9bf386fab2bcd76ce45a9bc1;hpb=e8db0ccc46566f36a1711e35c3758a2e785021f1;p=lyx.git diff --git a/src/LString.h b/src/LString.h index f98bc7d9b5..1e135594b3 100644 --- a/src/LString.h +++ b/src/LString.h @@ -1,31 +1,39 @@ // -*- C++ -*- /* This file is part of * ====================================================== - * + * * LyX, The Document Processor - * + * * Copyright 1995 Matthias Ettrich - * Copyright 1995-1999 The LyX Team. + * Copyright 1995-2001 The LyX Team. * * ====================================================== */ #ifndef LSTRING_H -#define 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 +#define __STRING__ +#endif #include "support/lyxstring.h" +// using lyx::string; typedef lyxstring string; -#if defined(USING_EXCEPTIONS) && defined(HAVE_STL_STRING_FWD_H) -// Hide the forward declaration of string by SGI's STL > 3.13. But only when -// exceptions are in use. -// Due to a clash with SGI's forward declaration of string we have to provide -// __get_c_string() ourselves since SGI expects it to exist and block -// their string declarations as best we can. ARRae. -# define __SGI_STL_STRING_FWD_H -static char const * __get_c_string(string const &); -#endif // HAVE_STL_STRING_FWD_H +#define STRCONV(STR) STR.c_str() #endif + #endif