|
1 | 1 | /* Provide relocatable packages. |
2 | | - Copyright (C) 2003-2006, 2008-2017 Free Software Foundation, Inc. |
| 2 | + Copyright (C) 2003-2006, 2008-2018 Free Software Foundation, Inc. |
3 | 3 | Written by Bruno Haible <bruno@clisp.org>, 2003. |
4 | 4 |
|
5 | 5 | This program is free software; you can redistribute it and/or modify it |
|
42 | 42 | # include "xalloc.h" |
43 | 43 | #endif |
44 | 44 |
|
45 | | -#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ |
| 45 | +#if defined _WIN32 && !defined __CYGWIN__ |
46 | 46 | # define WIN32_LEAN_AND_MEAN |
47 | 47 | # include <windows.h> |
48 | 48 | #endif |
|
77 | 77 | ISSLASH(C) tests whether C is a directory separator character. |
78 | 78 | IS_PATH_WITH_DIR(P) tests whether P contains a directory specification. |
79 | 79 | */ |
80 | | -#if ((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) || defined __EMX__ || defined __DJGPP__ |
| 80 | +#if (defined _WIN32 && !defined __CYGWIN__) || defined __EMX__ || defined __DJGPP__ |
81 | 81 | /* Native Windows, OS/2, DOS */ |
82 | 82 | # define ISSLASH(C) ((C) == '/' || (C) == '\\') |
83 | 83 | # define HAS_DEVICE(P) \ |
|
99 | 99 | platforms, see below. Therefore we enable it by default only on native |
100 | 100 | Windows platforms. */ |
101 | 101 | #ifndef ENABLE_COSTLY_RELOCATABLE |
102 | | -# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ |
| 102 | +# if defined _WIN32 && !defined __CYGWIN__ |
103 | 103 | # define ENABLE_COSTLY_RELOCATABLE 1 |
104 | 104 | # else |
105 | 105 | # define ENABLE_COSTLY_RELOCATABLE 0 |
@@ -256,7 +256,7 @@ compute_curr_prefix (const char *orig_installprefix, |
256 | 256 | /* Do case-insensitive comparison if the file system is always or |
257 | 257 | often case-insensitive. It's better to accept the comparison |
258 | 258 | if the difference is only in case, rather than to fail. */ |
259 | | -#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ |
| 259 | +#if defined _WIN32 || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ |
260 | 260 | /* Native Windows, Cygwin, OS/2, DOS - case insignificant file system */ |
261 | 261 | if ((*rpi >= 'a' && *rpi <= 'z' ? *rpi - 'a' + 'A' : *rpi) |
262 | 262 | != (*cpi >= 'a' && *cpi <= 'z' ? *cpi - 'a' + 'A' : *cpi)) |
@@ -310,12 +310,12 @@ compute_curr_prefix (const char *orig_installprefix, |
310 | 310 | /* Full pathname of shared library, or NULL. */ |
311 | 311 | static char *shared_library_fullname; |
312 | 312 |
|
313 | | -#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ |
| 313 | +#if defined _WIN32 && !defined __CYGWIN__ |
314 | 314 | /* Native Windows only. |
315 | 315 | On Cygwin, it is better to use the Cygwin provided /proc interface, than |
316 | 316 | to use native Windows API and cygwin_conv_to_posix_path, because it |
317 | 317 | supports longer file names |
318 | | - (see <http://cygwin.com/ml/cygwin/2011-01/msg00410.html>). */ |
| 318 | + (see <https://cygwin.com/ml/cygwin/2011-01/msg00410.html>). */ |
319 | 319 |
|
320 | 320 | /* Determine the full pathname of the shared library when it is loaded. */ |
321 | 321 |
|
@@ -445,8 +445,7 @@ find_shared_library_fullname () |
445 | 445 | static char * |
446 | 446 | get_shared_library_fullname () |
447 | 447 | { |
448 | | -#if (!((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) \ |
449 | | - && !defined __EMX__) |
| 448 | +#if !(defined _WIN32 && !defined __CYGWIN__) && !defined __EMX__ |
450 | 449 | static bool tried_find_shared_library_fullname; |
451 | 450 | if (!tried_find_shared_library_fullname) |
452 | 451 | { |
|
0 commit comments