Skip to content
This repository has been archived by the owner on Dec 12, 2019. It is now read-only.

Commit

Permalink
Fix json11.hpp for building on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pierobot committed Feb 16, 2016
1 parent 6a00af4 commit c447986
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/json11/json11.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@
#include <memory>
#include <initializer_list>

#ifdef _MSC_VER
#if _MSC_VER <= 1800 // VS 2013
#define noexcept throw()
#define snprintf _snprintf
#endif
#endif

namespace json11 {

enum JsonParse {
Expand Down

0 comments on commit c447986

Please sign in to comment.