summaryrefslogtreecommitdiff
path: root/plugins/mapexport
diff options
context:
space:
mode:
authorTimothy Collett2012-05-24 11:31:20 -0400
committerTimothy Collett2012-05-24 11:31:20 -0400
commit24d221052b2e5cce5eadf3a7183cc808dbb21236 (patch)
tree8eca2859eecaa99365df6d87e973f7cde9505404 /plugins/mapexport
parent20794ebf191d21d5acce274d70bdad4012deaa44 (diff)
downloaddfhack-24d221052b2e5cce5eadf3a7183cc808dbb21236.tar.gz
dfhack-24d221052b2e5cce5eadf3a7183cc808dbb21236.tar.bz2
dfhack-24d221052b2e5cce5eadf3a7183cc808dbb21236.tar.xz
Initial changes to get dfhack building on the Mac
Diffstat (limited to 'plugins/mapexport')
-rw-r--r--plugins/mapexport/mapexport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mapexport/mapexport.cpp b/plugins/mapexport/mapexport.cpp
index 625f4a74..6bc2d6fb 100644
--- a/plugins/mapexport/mapexport.cpp
+++ b/plugins/mapexport/mapexport.cpp
@@ -124,7 +124,7 @@ command_result mapexport (color_ostream &out, std::vector <std::string> & parame
if (filename.rfind(".dfmap") == std::string::npos) filename += ".dfmap";
out << "Writing to " << filename << "..." << std::endl;
- std::ofstream output_file(filename, std::ios::out | std::ios::trunc | std::ios::binary);
+ std::ofstream output_file(filename.c_str(), std::ios::out | std::ios::trunc | std::ios::binary);
if (!output_file.is_open())
{
out.printerr("Couldn't open the output file.\n");