/* Implementation of the internal dcigettext function.
- Copyright (C) 1995-2017 Free Software Foundation, Inc.
+ Copyright (C) 1995-2018 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
it may be concatenated to a directory pathname.
IS_PATH_WITH_DIR(P) tests whether P contains a directory specification.
*/
-#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
+#if defined _WIN32 || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
/* Win32, Cygwin, OS/2, DOS */
# define ISSLASH(C) ((C) == '/' || (C) == '\\')
# define HAS_DEVICE(P) \
-/* Copyright (C) 1995-2016 Free Software Foundation, Inc.
+/* Copyright (C) 1995-2016, 2018 Free Software Foundation, Inc.
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
This program is free software: you can redistribute it and/or modify
IS_ABSOLUTE_PATH(P) tests whether P is an absolute path. If it is not,
it may be concatenated to a directory pathname.
*/
-#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
+#if defined _WIN32 || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
/* Win32, Cygwin, OS/2, DOS */
# define ISSLASH(C) ((C) == '/' || (C) == '\\')
# define HAS_DEVICE(P) \
/* Determine the user's language preferences.
- Copyright (C) 2004-2007, 2015-2016 Free Software Foundation, Inc.
+ Copyright (C) 2004-2007, 2015-2016, 2018 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
extern void _nl_locale_name_canonicalize (char *name);
#endif
-#if defined _WIN32 || defined __WIN32__
+#if defined _WIN32
# define WIN32_NATIVE
#endif
/* Message catalogs for internationalization.
- Copyright (C) 1995-1997, 2000-2016 Free Software Foundation, Inc.
+ Copyright (C) 1995-1997, 2000-2016, 2018 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
/* Support for the locale chosen by the user. */
-#if (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __WIN32__ || defined __CYGWIN__
+#if (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __CYGWIN__
#ifndef GNULIB_defined_setlocale /* don't override gnulib */
#undef setlocale
-/* Copyright (C) 1996-2016 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2016, 2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
#endif
/* Separator in PATH like lists of pathnames. */
-#if ((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) || defined __EMX__ || defined __DJGPP__
+#if (defined _WIN32 && !defined __CYGWIN__) || defined __EMX__ || defined __DJGPP__
/* Win32, OS/2, DOS */
# define PATH_SEPARATOR ';'
#else
/* Formatted output to strings.
- Copyright (C) 1999-2000, 2002-2003, 2006-2008, 2011, 2015-2016 Free Software
+ Copyright (C) 1999-2000, 2002-2003, 2006-2008, 2011, 2015-2016, 2018 Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
cp++;
}
#endif
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
/* On native Win32, PRIdMAX is defined as "I64d".
We cannot change it to "lld" because PRIdMAX must also
be understood by the system's printf routines. */
/* setlocale() function that respects the locale chosen by the user.
- Copyright (C) 2009, 2015-2016 Free Software Foundation, Inc.
+ Copyright (C) 2009, 2015-2016, 2018 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2009.
This program is free software: you can redistribute it and/or modify
#include "gettextP.h"
-#if (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __WIN32__ || defined __CYGWIN__
+#if (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __CYGWIN__
# undef setlocale
# undef newlocale
return retval;
}
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
/* The native Win32 setlocale() function expects locale names of the form
"German" or "German_Germany" or "DEU", but not "de" or "de_DE". We need
if (setlocale_unixlike (LC_ALL, base_name) == NULL)
goto fail;
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
/* On native Windows, setlocale(LC_ALL,...) may succeed but set the
LC_CTYPE category to an invalid value ("C") when it does not
support the specified encoding. Report a failure instead. */
}
else
{
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
if (category == LC_ALL && locale != NULL && strchr (locale, '.') != NULL)
{
char *saved_locale;
/* Formatted output to strings.
- Copyright (C) 1999-2000, 2002-2003, 2006-2008, 2011, 2015-2016 Free Software
+ Copyright (C) 1999-2000, 2002-2003, 2006-2008, 2011, 2015-2016, 2018 Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
cp++;
}
#endif
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
/* On native Win32, PRIdMAX is defined as "I64d".
We cannot change it to "lld" because PRIdMAX must also
be understood by the system's printf routines. */
/* Parsing C format strings.
- Copyright (C) 2001-2004, 2006-2007, 2009-2010, 2015-2016 Free Software
+ Copyright (C) 2001-2004, 2006-2007, 2009-2010, 2015-2016, 2018 Free Software
Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
size = FAT_SIZE_SIZE_T;
else if (*format == 't')
size = FAT_SIZE_PTRDIFF_T;
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
else if (SYSDEP_SEGMENTS_PROCESSED
&& *format == 'I'
&& format[1] == '6'
/* Display hostname in various forms.
- Copyright (C) 2001-2003, 2006-2007, 2012, 2015-2016 Free Software
+ Copyright (C) 2001-2003, 2006-2007, 2012, 2015-2016, 2018 Free Software
Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
#include <string.h>
#include <locale.h>
-#if defined _WIN32 || defined __WIN32__
+#if defined _WIN32
# define WIN32_NATIVE
#endif
/* Return the name-within-directory of a file name.
- Copyright (C) 1996-2002, 2004, 2006, 2010, 2012, 2015-2016 Free Software
+ Copyright (C) 1996-2002, 2004, 2006, 2010, 2012, 2015-2016, 2018 Free Software
Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C Library.
#include <stdio.h>
#include <assert.h>
-#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
+#if defined _WIN32 || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
/* Win32, Cygwin, OS/2, DOS */
# define HAS_DEVICE(P) \
((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \