Skip to content

Commit 3ad1a36

Browse files
committed
Fix build error on Windows due to defined min/max.
This is so dumb.
1 parent 021b2df commit 3ad1a36

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

rapidjson/document.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
#ifndef RAPIDJSON_DOCUMENT_H_
1616
#define RAPIDJSON_DOCUMENT_H_
1717

18+
#ifdef max
19+
#undef max
20+
#endif
21+
#ifdef min
22+
#undef min
23+
#endif
24+
25+
1826
/*! \file document.h */
1927

2028
#include "reader.h"

0 commit comments

Comments
 (0)