Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion absl/base/attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
(!defined(_WIN32) || \
(defined(__clang__) && __clang_major__ >= 9 && \
!defined(ABSL_BUILD_DLL) && !defined(ABSL_CONSUME_DLL))) && \
!defined(__MINGW32__)
!defined(__MINGW32__) && !defined(__CYGWIN__)
#undef ABSL_ATTRIBUTE_WEAK
#define ABSL_ATTRIBUTE_WEAK __attribute__((weak))
#define ABSL_HAVE_ATTRIBUTE_WEAK 1
Expand Down
4 changes: 2 additions & 2 deletions absl/base/internal/low_level_alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
// LowLevelAlloc.
#ifdef ABSL_LOW_LEVEL_ALLOC_MISSING
#error ABSL_LOW_LEVEL_ALLOC_MISSING cannot be directly set
#elif !defined(ABSL_HAVE_MMAP) && !defined(_WIN32)
#elif !defined(ABSL_HAVE_MMAP) && !defined(_WIN32) && !defined(__CYGWIN__)
#define ABSL_LOW_LEVEL_ALLOC_MISSING 1
#endif

Expand All @@ -47,7 +47,7 @@
#ifdef ABSL_LOW_LEVEL_ALLOC_ASYNC_SIGNAL_SAFE_MISSING
#error ABSL_LOW_LEVEL_ALLOC_ASYNC_SIGNAL_SAFE_MISSING cannot be directly set
#elif defined(_WIN32) || defined(__asmjs__) || defined(__wasm__) || \
defined(__hexagon__)
defined(__hexagon__) || defined(__CYGWIN__)
#define ABSL_LOW_LEVEL_ALLOC_ASYNC_SIGNAL_SAFE_MISSING 1
#endif

Expand Down
2 changes: 1 addition & 1 deletion absl/base/internal/sysinfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ pid_t GetTID() {
pid_t GetTID() {
// `pthread_t` need not be arithmetic per POSIX; platforms where it isn't
// should be handled above.
return static_cast<pid_t>(pthread_self());
return reinterpret_cast<pid_t>(pthread_self());
}

#endif
Expand Down
3 changes: 3 additions & 0 deletions absl/base/internal/sysinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ int NumCPUs();
// return types of GetProcessId() and GetThreadId() are both DWORD, an unsigned
// 32-bit type.
using pid_t = uint32_t;
#elif defined(__CYGWIN__)
// On CYGWIN, this works on both i686 (deprecated) and x64 targets.
using pid_t = uintptr_t;
#endif
pid_t GetTID();

Expand Down
4 changes: 0 additions & 4 deletions absl/base/policy_checks.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@
// Operating System Check
// -----------------------------------------------------------------------------

#if defined(__CYGWIN__)
#error "Cygwin is not supported."
#endif

// -----------------------------------------------------------------------------
// Toolchain Check
// -----------------------------------------------------------------------------
Expand Down