From 93fa9ac1c94d7c82c5358c4168a8cd194d87d15f Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 23 Apr 2017 14:29:41 +0300 Subject: [PATCH] Include gitinfo.h in version.h on Windows only Avoid building of several files on each pull/reset/amend/cherry-pick/etc on macOS and Linux --- src/version.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/version.h b/src/version.h index b2e554633..f4b755579 100644 --- a/src/version.h +++ b/src/version.h @@ -31,11 +31,13 @@ ** */ -#include "gitinfo.h" - #ifndef __VERSION_H__ #define __VERSION_H__ +#ifdef _WIN32 +#include "gitinfo.h" +#endif // _WIN32 + const char *GetGitDescription(); const char *GetGitHash(); const char *GetGitTime();