mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-24 04:20:56 -04:00
+ try to fix problems with the "max" macro and windows
This commit is contained in:
parent
641177ae0e
commit
4dd9c3b306
@ -24,6 +24,13 @@
|
|||||||
#include <limits>
|
#include <limits>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#define NOMINMAX
|
||||||
|
# include <windows.h>
|
||||||
|
#undef NOMINMAX
|
||||||
|
#undef max
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace zim
|
namespace zim
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -26,6 +26,13 @@
|
|||||||
#include <iosfwd>
|
#include <iosfwd>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#define NOMINMAX
|
||||||
|
# include <windows.h>
|
||||||
|
#undef NOMINMAX
|
||||||
|
#undef max
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace zim
|
namespace zim
|
||||||
{
|
{
|
||||||
class Fileheader
|
class Fileheader
|
||||||
|
Loading…
x
Reference in New Issue
Block a user