File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ elseif(APPLE)
108
108
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin" )
109
109
target_compile_definitions (platform_wsi INTERFACE VK_USE_PLATFORM_MACOS_MVK )
110
110
endif ()
111
- elseif (CMAKE_SYSTEM_NAME MATCHES "Linux|BSD|DragonFly|GNU" )
111
+ elseif (CMAKE_SYSTEM_NAME MATCHES "Linux|BSD|DragonFly|GNU|CYGWIN " )
112
112
option (BUILD_WSI_XCB_SUPPORT "Build XCB WSI support" ON )
113
113
option (BUILD_WSI_XLIB_SUPPORT "Build Xlib WSI support" ON )
114
114
option (BUILD_WSI_XLIB_XRANDR_SUPPORT "Build X11 Xrandr WSI support" ON )
Original file line number Diff line number Diff line change 44
44
45
45
// Set of platforms with a common set of functionality which is queried throughout the program
46
46
#if defined(__linux__ ) || defined(__APPLE__ ) || defined(__Fuchsia__ ) || defined(__QNX__ ) || defined(__FreeBSD__ ) || \
47
- defined(__OpenBSD__ ) || defined(__NetBSD__ ) || defined(__DragonFly__ ) || defined(__GNU__ )
47
+ defined(__OpenBSD__ ) || defined(__NetBSD__ ) || defined(__DragonFly__ ) || defined(__GNU__ ) || defined( __CYGWIN__ )
48
48
#define COMMON_UNIX_PLATFORMS 1
49
49
#else
50
50
#define COMMON_UNIX_PLATFORMS 0
@@ -298,7 +298,7 @@ static inline char *loader_platform_dirname(char *path) { return dirname(path);
298
298
299
299
// loader_platform_executable_path finds application path + name.
300
300
// Path cannot be longer than 1024, returns NULL if it is greater than that.
301
- #if defined(__linux__ ) || defined(__GNU__ )
301
+ #if defined(__linux__ ) || defined(__GNU__ ) || defined( __CYGWIN__ )
302
302
static inline char * loader_platform_executable_path (char * buffer , size_t size ) {
303
303
ssize_t count = readlink ("/proc/self/exe" , buffer , size );
304
304
if (count == -1 ) return NULL ;
You can’t perform that action at this time.
0 commit comments