From 2053cf8fe87689d150b1beeb78a85f9794d9ff48 Mon Sep 17 00:00:00 2001 From: Bernd Machenschalk <bernd.machenschalk@ligo.org> Date: Tue, 3 May 2016 10:53:18 +0200 Subject: [PATCH] Wrapper: there is nothing to create svn_version.h for Windows in BOINC - however, an (empty) config.h does exist in win_build, so allow to define an SVN_VERSION there --- samples/wrapper/wrapper.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/samples/wrapper/wrapper.cpp b/samples/wrapper/wrapper.cpp index 5bc41122c7..ee731a216e 100644 --- a/samples/wrapper/wrapper.cpp +++ b/samples/wrapper/wrapper.cpp @@ -42,8 +42,12 @@ // #define CHECK_EXECUTABLES -#ifndef _WIN32 #include "config.h" +#ifndef _WIN32 +#include "svn_version.h" +#endif +#ifndef SVN_VERSION +#define SVN_VERSION "Unknown" #endif #include <stdio.h> #include <vector> @@ -68,7 +72,6 @@ #endif #include "version.h" -#include "svn_version.h" #include "boinc_api.h" #include "app_ipc.h" #include "graphics2.h" -- GitLab