From a63f466c485e95a666b019baec1bf0192bf61080 Mon Sep 17 00:00:00 2001 From: Fumitoshi Ukai Date: Thu, 17 Dec 2015 15:40:25 +0900 Subject: [PATCH] win: use _fdopen instead of fdopen The POSIX function fdopen is deprecated. Use the ISO C++ conformant _fdopen instead. https://msdn.microsoft.com/library/ms235351.aspx fixes #73 --- src/logging.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/logging.cc b/src/logging.cc index 982a308..ec9eef1 100644 --- a/src/logging.cc +++ b/src/logging.cc @@ -88,6 +88,10 @@ using std::perror; using std::fdopen; #endif +#ifdef _WIN32 +#define fdopen _fdopen +#endif + // There is no thread annotation support. #define EXCLUSIVE_LOCKS_REQUIRED(mu) -- 2.34.1