]> git.lyx.org Git - lyx.git/blobdiff - src/LString.h
clean up a bit
[lyx.git] / src / LString.h
index e588f43447fe67d4e6db18940ec9a24ec96af10a..1e135594b319e992bc4e2ab19cd3ba86af47d77e 100644 (file)
@@ -1,25 +1,39 @@
 // -*- 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
+
+#if 0
+#ifndef _CONFIG_H
+#error The <config.h> header should always be included before LString.h
+#endif
+#endif
 
 #ifndef USE_INCLUDED_STRING
+
 #include <string>
 using std::string;
-//using std::wstring;
+#define STRCONV(STR) STR
 #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;
-//typedef lyxwstring wstring;
-#endif
+#define STRCONV(STR) STR.c_str()
 #endif
 
+#endif