Update api.cpp

Switched file streams to those that can open non-ANSI file paths (the header file "streams.h" has not yet been committed).
This commit is contained in:
WrinklyNinja
2013-07-22 10:38:30 +01:00
parent 021a7e5033
commit 59073dbc40
+2 -2
View File
@@ -28,11 +28,11 @@
#include "../backend/parsers.h"
#include "../backend/generators.h"
#include "../backend/error.h"
#include "../backend/streams.h"
#include <yaml-cpp/yaml.h>
#include <algorithm>
#include <fstream>
#include <clocale>
#include <list>
#include <vector>
@@ -591,7 +591,7 @@ BOSS_API unsigned int boss_write_minimal_list (boss_db db, const char * const ou
<< YAML::Key << "plugins" << YAML::Value << temp
<< YAML::EndMap;
std::ofstream out(outputFile);
boss::ofstream out(outputFile);
if (out.fail())
return boss_error_invalid_args;
out << yout.c_str();