From: APTX Date: Tue, 30 Nov 2010 18:12:55 +0000 (+0100) Subject: gcc fixes X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=ceb72402747d54ad7022d5717990cfc8e2c375b7;p=tal.git gcc fixes --- diff --git a/shared/shared.h b/shared/shared.h index f2c7ee1..5770224 100644 --- a/shared/shared.h +++ b/shared/shared.h @@ -1,4 +1,5 @@ #include +#include bool atoi_wrapper(const char *s, int *result) { diff --git a/tal-algorithm/main.cpp b/tal-algorithm/main.cpp index f0a6a1f..a810a2c 100644 --- a/tal-algorithm/main.cpp +++ b/tal-algorithm/main.cpp @@ -2,6 +2,8 @@ #include #include #include +#include +#include #include "../shared/shared.h" using namespace std; @@ -273,6 +275,7 @@ int main(int argc, char **argv) bool run_greedy_LowestWeight = false; bool run_greedy_BestRatio = false; int runs = 1; + Problem *p = 0; if (argc < 2) goto help; @@ -310,7 +313,7 @@ int main(int argc, char **argv) } bool success; - Problem *p = read_problem(cin, &success); + p = read_problem(cin, &success); if (!success) {