Skip to content

Commit

Permalink
NOMINMAXの定義をifndefで括る
Browse files Browse the repository at this point in the history
  • Loading branch information
berryzplus committed May 12, 2019
1 parent 3de3153 commit 232c7ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unittests/test-int2dec.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#include <gtest/gtest.h>

#include <limits>

#ifndef NOMINMAX
#define NOMINMAX
#endif /* #ifndef NOMINMAX */

#include <Windows.h>
#include <tchar.h>
#include "basis/primitive.h"
Expand Down
3 changes: 3 additions & 0 deletions tests/unittests/test-is_mailaddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
*/
#include <gtest/gtest.h>

#ifndef NOMINMAX
#define NOMINMAX
#endif /* #ifndef NOMINMAX */

#include <tchar.h>
#include <wchar.h>
#include <assert.h>
Expand Down

0 comments on commit 232c7ea

Please sign in to comment.