Avoid warning on EMX.
authorBruno Haible <bruno@clisp.org>
Sun, 13 Apr 2008 10:57:48 +0000 (12:57 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 13 Apr 2008 10:57:48 +0000 (12:57 +0200)
ChangeLog
lib/localcharset.c

index a3f1159..44deb66 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
-2008-04-12  Bruno Haible  <bruno@clisp.org>
+2008-04-13  Bruno Haible  <bruno@clisp.org>
+
+       * lib/localcharset.c (OS2): Don't redefine if already defined.
+       Reported by Elbert Pol <e.pol@chello.nl>.
+
+2008-04-13  Bruno Haible  <bruno@clisp.org>
 
        * lib/binary-io.h [__EMX__]: Include <io.h>.
+       Reported by Elbert Pol <e.pol@chello.nl>.
 
 2008-04-12  Bruno Haible  <bruno@clisp.org>
 
index a0f7cca..fb49519 100644 (file)
@@ -1,6 +1,6 @@
 /* Determine a canonical name for the current locale's character encoding.
 
-   Copyright (C) 2000-2006 Free Software Foundation, Inc.
+   Copyright (C) 2000-2006, 2008 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -34,7 +34,9 @@
 
 #if defined __EMX__
 /* Assume EMX program runs on OS/2, even if compiled under DOS.  */
-# define OS2
+# ifndef OS2
+#  define OS2
+# endif
 #endif
 
 #if !defined WIN32_NATIVE