]> git.lyx.org Git - lyx.git/blobdiff - src/os2_errortable.h
whichFont down to 5.3%
[lyx.git] / src / os2_errortable.h
index 997f55dbc530f5a2d02b5ccc3f1098dd024fdd58..b2b4c3e8f5f58b32c0e5d9c55c4df7e99cfaaec9 100644 (file)
@@ -5,7 +5,7 @@
 *           LyX, The Document Processor
 *        
 *           Copyright 1995 Matthias Ettrich
-*           Copyright 1995-2000 The LyX Team.
+*           Copyright 1995-2001 The LyX Team.
 *
 * ======================================================
  A table for translating OS/2 API return code into errno.
@@ -17,7 +17,9 @@
 #include <cerrno>
 //#endif
 
-static unsigned char const errno_tab[] =
+namespace {
+
+unsigned char const errno_tab[] =
 {
   EINVAL, EINVAL, ENOENT, ENOENT, EMFILE,  /* 0..4 */
   EACCES, EBADF,  EIO,    ENOMEM, EIO,     /* 5..9 */
@@ -88,6 +90,9 @@ static unsigned char const errno_tab[] =
   EACCES, EACCES, EACCES, ENOENT, ENOMEM   /* 330..334 */
 };
 
+} // namespace anon
+
+
 inline
 int TranslateOS2Error(unsigned long rc)
 {