Skip to content

Commit 35064ed

Browse files
committed
Simplify code. Drop support for Borland C++ on Windows.
1 parent 07aa900 commit 35064ed

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2018-05-04 Bruno Haible <bruno@clisp.org>
2+
3+
Simplify code. Drop support for Borland C++ on Windows.
4+
* lib/iconv.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
5+
'defined _WIN32'.
6+
* lib/iconv_open1.h: Likewise.
7+
18
2018-05-04 Bruno Haible <bruno@clisp.org>
29

310
* lib/relocatable.c: Update from gnulib.

lib/iconv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 1999-2008, 2011, 2016 Free Software Foundation, Inc.
2+
* Copyright (C) 1999-2008, 2011, 2016, 2018 Free Software Foundation, Inc.
33
* This file is part of the GNU LIBICONV Library.
44
*
55
* The GNU LIBICONV Library is free software; you can redistribute it
@@ -559,7 +559,7 @@ const char * iconv_canonicalize (const char * name)
559559
/* On systems which define __STDC_ISO_10646__, wchar_t is Unicode.
560560
This is also the case on native Woe32 systems and Cygwin >= 1.7, where
561561
we know that it is UTF-16. */
562-
#if ((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) || (defined __CYGWIN__ && CYGWIN_VERSION_DLL_MAJOR >= 1007)
562+
#if (defined _WIN32 && !defined __CYGWIN__) || (defined __CYGWIN__ && CYGWIN_VERSION_DLL_MAJOR >= 1007)
563563
if (sizeof(wchar_t) == 4) {
564564
index = ei_ucs4internal;
565565
break;

lib/iconv_open1.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 1999-2008, 2011 Free Software Foundation, Inc.
2+
* Copyright (C) 1999-2008, 2011, 2018 Free Software Foundation, Inc.
33
* This file is part of the GNU LIBICONV Library.
44
*
55
* The GNU LIBICONV Library is free software; you can redistribute it
@@ -98,7 +98,7 @@
9898
/* On systems which define __STDC_ISO_10646__, wchar_t is Unicode.
9999
This is also the case on native Woe32 systems and Cygwin >= 1.7, where
100100
we know that it is UTF-16. */
101-
#if ((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) || (defined __CYGWIN__ && CYGWIN_VERSION_DLL_MAJOR >= 1007)
101+
#if (defined _WIN32 && !defined __CYGWIN__) || (defined __CYGWIN__ && CYGWIN_VERSION_DLL_MAJOR >= 1007)
102102
if (sizeof(wchar_t) == 4) {
103103
to_index = ei_ucs4internal;
104104
break;
@@ -188,7 +188,7 @@
188188
/* On systems which define __STDC_ISO_10646__, wchar_t is Unicode.
189189
This is also the case on native Woe32 systems and Cygwin >= 1.7, where
190190
we know that it is UTF-16. */
191-
#if ((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) || (defined __CYGWIN__ && CYGWIN_VERSION_DLL_MAJOR >= 1007)
191+
#if (defined _WIN32 && !defined __CYGWIN__) || (defined __CYGWIN__ && CYGWIN_VERSION_DLL_MAJOR >= 1007)
192192
if (sizeof(wchar_t) == 4) {
193193
from_index = ei_ucs4internal;
194194
break;

0 commit comments

Comments
 (0)