summaryrefslogtreecommitdiff
path: root/utilities/modwrite.cpp
diff options
context:
space:
mode:
authorRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:53:49 -0400
committerRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:53:49 -0400
commit8c8aa6b07e595cfac56838b5964ab3e96051f1b2 (patch)
treeda38e2c1979148dbd3b0c7b87f930746f5ba7f44 /utilities/modwrite.cpp
parent8d3fc864d094eeadc721f8e93436b37a5fab173e (diff)
Imported Upstream version 1.5.7
Diffstat (limited to 'utilities/modwrite.cpp')
-rw-r--r--utilities/modwrite.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/utilities/modwrite.cpp b/utilities/modwrite.cpp
index 33bd20c..32a7759 100644
--- a/utilities/modwrite.cpp
+++ b/utilities/modwrite.cpp
@@ -3,7 +3,7 @@
#include <fcntl.h>
#include <iostream>
#include <fstream>
-#include <string>
+//#include <string>
#ifndef __GNUC__
#include <io.h>
@@ -14,6 +14,14 @@
#include <swmgr.h>
#include <stdio.h>
+#ifndef NO_SWORD_NAMESPACE
+using sword::SWMgr;
+using sword::SWModule;
+using sword::ModMap;
+using sword::SWKey;
+#endif
+
+using std::cerr;
int main(int argc, char **argv)
{
@@ -36,7 +44,7 @@ int main(int argc, char **argv)
}
SWModule *module = it->second;
- module->SetKey(argv[2]);
+ module->setKey(argv[2]);
switch (action) {
case 0: