mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 14:23:38 +08:00
Use standard __CYGWIN__ define for Cygwin detection
This commit is contained in:
parent
3115446a07
commit
462cb6044c
|
@ -43,11 +43,6 @@ if (CMAKE_HOST_SYSTEM_VERSION MATCHES ".*-Microsoft")
|
|||
SET(WSL 1)
|
||||
endif()
|
||||
|
||||
# Detect Cygwin.
|
||||
if (CMAKE_SYSTEM_NAME MATCHES "CYGWIN_NT.*")
|
||||
SET(CYGWIN 1)
|
||||
endif()
|
||||
|
||||
# Set up the config.h file.
|
||||
SET(PACKAGE_NAME "fish")
|
||||
SET(PACKAGE_TARNAME "fish")
|
||||
|
|
|
@ -4,9 +4,6 @@
|
|||
/* Define to 1 if compiled on WSL */
|
||||
#cmakedefine WSL 1
|
||||
|
||||
/* Define to 1 if complied under Cygwin */
|
||||
#cmakedefine CYGWIN 1
|
||||
|
||||
/* Define to 1 if you have the `clock_gettime' function. */
|
||||
#cmakedefine HAVE_CLOCK_GETTIME 1
|
||||
|
||||
|
|
|
@ -949,7 +949,7 @@ constexpr bool is_windows_subsystem_for_linux() {
|
|||
|
||||
/// Detect if we are running under Cygwin or Cgywin64
|
||||
constexpr bool is_cygwin() {
|
||||
#ifdef CYGWIN
|
||||
#ifdef __CYGWIN__
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user