Skip to content

Commit

Permalink
Don't include the world with WIN32_LEAN_AND_MEAN (#503)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4423490)
  • Loading branch information
Quentin01 authored and foonathan committed Jun 8, 2017
1 parent ea8ba13 commit 2048b69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fmt/format.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#endif

#if FMT_USE_WINDOWS_H
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif
# if defined(NOMINMAX) || defined(FMT_WIN_MINMAX)
# include <windows.h>
# else
Expand Down
3 changes: 3 additions & 0 deletions fmt/posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
#ifndef _WIN32
# include <unistd.h>
#else
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif
# include <windows.h>
# include <io.h>

Expand Down

0 comments on commit 2048b69

Please sign in to comment.