Commit abea769b by Joe Sylve Committed by Andy Getz

Fix ABSL_HAVE_ALARM check on mingw (#341)

* Fix ABSL_HAVE_ALARM check on mingw
parent 25597bdf
...@@ -334,6 +334,11 @@ ...@@ -334,6 +334,11 @@
#define ABSL_HAVE_ALARM 1 #define ABSL_HAVE_ALARM 1
#elif defined(_MSC_VER) #elif defined(_MSC_VER)
// feature tests for Microsoft's library // feature tests for Microsoft's library
#elif defined(__MINGW32__)
// mingw32 doesn't provide alarm(2):
// https://osdn.net/projects/mingw/scm/git/mingw-org-wsl/blobs/5.2-trunk/mingwrt/include/unistd.h
// mingw-w64 provides a no-op implementation:
// https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-crt/misc/alarm.c
#elif defined(__EMSCRIPTEN__) #elif defined(__EMSCRIPTEN__)
// emscripten doesn't support signals // emscripten doesn't support signals
#elif defined(__Fuchsia__) #elif defined(__Fuchsia__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment