diff options
author | Adam <Adam@anope.org> | 2010-06-27 20:34:09 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-06-27 20:34:09 -0400 |
commit | f17c4d4d04bc695cad75a277bb7ecf1afdef1efe (patch) | |
tree | 8f8b144c86dcacdc7644c3daeeac252ab447f306 /include/version.cpp | |
parent | 0eb007a1b3b422a1a60b671c155cec3e496c0430 (diff) |
Made Windows install.js correctly detect the Anope version and made version.cpp correctly generate version.h on Windows
Diffstat (limited to 'include/version.cpp')
-rw-r--r-- | include/version.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/version.cpp b/include/version.cpp index 5b642c70b..e9b04b939 100644 --- a/include/version.cpp +++ b/include/version.cpp @@ -26,6 +26,7 @@ int main(int argc, char *argv[]) fstream fd; + fd.clear(); fd.open(argv[1], ios::in); if (!fd.is_open()) { @@ -49,6 +50,7 @@ int main(int argc, char *argv[]) fd.close(); + fd.clear(); fd.open(argv[2], ios::in); string version_build = "#define VERSION_BUILD 1"; @@ -84,6 +86,7 @@ int main(int argc, char *argv[]) fd.close(); } + fd.clear(); fd.open(argv[2], ios::out); if (!fd.is_open()) |