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
This commit is contained in:
alexey.lysiuk 2017-04-23 14:29:41 +03:00
parent bd74cf85a4
commit 93fa9ac1c9

View file

@ -31,11 +31,13 @@
** **
*/ */
#include "gitinfo.h"
#ifndef __VERSION_H__ #ifndef __VERSION_H__
#define __VERSION_H__ #define __VERSION_H__
#ifdef _WIN32
#include "gitinfo.h"
#endif // _WIN32
const char *GetGitDescription(); const char *GetGitDescription();
const char *GetGitHash(); const char *GetGitHash();
const char *GetGitTime(); const char *GetGitTime();