From 5352813307e7e7dfa8e291fbdf6f2bf2090b9a76 Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Sat, 27 Mar 2004 00:23:19 +0000 Subject: [PATCH] compile fix svn path=/trunk/boinc/; revision=3179 --- lib/app_ipc.C | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/app_ipc.C b/lib/app_ipc.C index 1011ed0156..526483b096 100755 --- a/lib/app_ipc.C +++ b/lib/app_ipc.C @@ -59,9 +59,11 @@ int write_init_data_file(FILE* f, APP_INIT_DATA& ai) { xml_escape(str1, str2); fprintf(f, "%s\n", str2.c_str()); } +#ifdef _WIN32 if (strlen(ai.comm_obj_name)) { fprintf(f, "%s\n", ai.comm_obj_name); } +#endif fprintf(f, "%f\n" "%f\n" @@ -102,7 +104,9 @@ int parse_init_data_file(FILE* f, APP_INIT_DATA& ai) { else if (parse_str(buf, "", ai.app_name, sizeof(ai.app_name))) continue; else if (parse_str(buf, "", ai.user_name, sizeof(ai.user_name))) continue; else if (parse_str(buf, "", ai.team_name, sizeof(ai.team_name))) continue; +#ifdef _WIN32 else if (parse_str(buf, "", ai.comm_obj_name, sizeof(ai.comm_obj_name))) continue; +#endif else if (parse_double(buf, "", ai.user_total_credit)) continue; else if (parse_double(buf, "", ai.user_expavg_credit)) continue; else if (parse_double(buf, "", ai.host_total_credit)) continue;