Skip to content

Commit

Permalink
win: use _fdopen instead of fdopen
Browse files Browse the repository at this point in the history
The POSIX function fdopen is deprecated.
Use the ISO C++ conformant _fdopen instead.
https://msdn.microsoft.com/library/ms235351.aspx

fixes google#73
  • Loading branch information
ukai committed Dec 17, 2015
1 parent 1256d28 commit a63f466
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/logging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit a63f466

Please sign in to comment.