Skip to content

Commit

Permalink
Fixed some stuff so it compiles on Windows again
Browse files Browse the repository at this point in the history
Fixed some code errors for Windows.
  • Loading branch information
oxagast committed Dec 28, 2018
1 parent 6dd5368 commit 5a3089e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion include/xmlwriter/xml_writer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
#include "include/stack.h"
#endif
#ifdef __ANDROID__
# include "../stack.h"
#include "../stack.h"
#endif
#ifdef __WIN32
#include "../stack.h"
#endif
# include <iostream>

Expand Down
2 changes: 1 addition & 1 deletion src/bin2hex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ hexxy = hex_out.str();
// }
/* return to sys_string in hex */
return (hex_out.str());
}
#endif
}

std::string binstr_to_hex_pc(std::string bin_str) {
/* initialize the hex to go out */
Expand Down
1 change: 1 addition & 0 deletions src/log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#endif
#ifdef _WIN32
#include "version.h"
#include "../include/xmlwriter/xml_writer.hpp"
#endif
#include <cstdlib>
#include <cstring>
Expand Down
2 changes: 1 addition & 1 deletion src/match_fault.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ bool match_seg(struct Options o, struct RunCommands runit, struct Monopoly go, s
if ((foundW1073741819 != std::string::npos) ||
(foundW1073740791 != std::string::npos) ||
(foundW1073741571 != std::string::npos) ||
(foundW532459699 != std::string::npos) {
(foundW532459699 != std::string::npos)) {
cmd_output = cmd_output.replace(0, 22, "");
#endif
#ifdef __unix__
Expand Down
1 change: 1 addition & 0 deletions src/reaper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ int reaper(int grim, int t_timeout, std::string just_kill_me) {
return (ret);
#elif _WIN32
/* windows doesn't support kill 9 */
return(1);
#else
return (0);
#endif
Expand Down

0 comments on commit 5a3089e

Please sign in to comment.