diff --git a/include/nlohmann/detail/input/input_adapters.hpp b/include/nlohmann/detail/input/input_adapters.hpp index 3c097a6a..aaf9ebc5 100644 --- a/include/nlohmann/detail/input/input_adapters.hpp +++ b/include/nlohmann/detail/input/input_adapters.hpp @@ -309,7 +309,7 @@ class input_adapter { public: // native support - input_adapter(FILE* file) + input_adapter(std::FILE* file) : ia(std::make_shared(file)) {} /// input adapter for input stream input_adapter(std::istream& i) diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 781d6f14..f1dd9bea 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -2358,7 +2358,7 @@ class input_adapter { public: // native support - input_adapter(FILE* file) + input_adapter(std::FILE* file) : ia(std::make_shared(file)) {} /// input adapter for input stream input_adapter(std::istream& i)