From: Fumitoshi Ukai Date: Thu, 17 Dec 2015 06:40:25 +0000 (+0900) Subject: win: use _fdopen instead of fdopen X-Git-Tag: submit/tizen/20180313.064233~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a63f466c485e95a666b019baec1bf0192bf61080;p=platform%2Fupstream%2Fglog.git 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 --- 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)