]> git.lyx.org Git - lyx.git/blobdiff - src/LString.h
fix typo that put too many include paths for most people
[lyx.git] / src / LString.h
index bdb5512c0165697dab580c4e564c7cfcf4dce8d5..25809cba739ad9778241ed418e950b78c39b7638 100644 (file)
@@ -1,31 +1,32 @@
 // -*- C++ -*-
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
- *      
- *         Copyright (C) 1995 Matthias Ettrich
- *          Copyright (C) 1995-1999 The LyX Team.
+ *
+ *         Copyright 1995 Matthias Ettrich
+ *          Copyright 1995-2001 The LyX Team.
  *
  * ====================================================== */
 
 #ifndef LSTRING_H
-#define LSTRING_H 
+#define LSTRING_H
+
+#ifndef _CONFIG_H
+#error The <config.h> header should always be included before LString.h
+#endif
 
 #ifndef USE_INCLUDED_STRING
 #include <string>
 using std::string;
 #else
+#ifdef __STRING__
+#error The <string> 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 const char* __get_c_string(const string&);
-#endif // HAVE_STL_STRING_FWD_H
 #endif
 #endif