+ try to fix problems with the "max" macro and windows

This commit is contained in:
kelson42 2012-08-07 10:09:31 +00:00
parent 641177ae0e
commit 4dd9c3b306
2 changed files with 14 additions and 0 deletions

View File

@ -24,6 +24,13 @@
#include <limits>
#include <iostream>
#ifdef _WIN32
#define NOMINMAX
# include <windows.h>
#undef NOMINMAX
#undef max
#endif
namespace zim
{
/**

View File

@ -26,6 +26,13 @@
#include <iosfwd>
#include <limits>
#ifdef _WIN32
#define NOMINMAX
# include <windows.h>
#undef NOMINMAX
#undef max
#endif
namespace zim
{
class Fileheader