Skip to content

Commit

Permalink
Merge pull request #904 from berryzplus/feature/add_ifndef_NOMINMAX
Browse files Browse the repository at this point in the history
NOMINMAXの定義をifndefで括る
  • Loading branch information
berryzplus authored May 14, 2019
2 parents f9b9c95 + 232c7ea commit 1fb09e9
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 1fb09e9

Please sign in to comment.