diff --git a/include/json/reader.h b/include/json/reader.h index 64650ec..f983ce9 100644 --- a/include/json/reader.h +++ b/include/json/reader.h @@ -360,7 +360,7 @@ public: * Someday we might have a real StreamReader, but for now this * is convenient. */ -bool parseFromStream( +bool JSON_API parseFromStream( CharReader::Factory const&, std::istream&, Value* root, std::string* errs); diff --git a/include/json/writer.h b/include/json/writer.h index ed21c9b..2d6dbce 100644 --- a/include/json/writer.h +++ b/include/json/writer.h @@ -66,7 +66,7 @@ public: /** \brief Write into stringstream, then return string, for convenience. * A StreamWriter will be created from the factory, used, and then deleted. */ -std::string writeString(StreamWriter::Factory const& factory, Value const& root); +std::string JSON_API writeString(StreamWriter::Factory const& factory, Value const& root); /** \brief Build a StreamWriter implementation.