Skip to content

Commit

Permalink
Include gitinfo.h in version.h on Windows only
Browse files Browse the repository at this point in the history
Avoid building of several files on each pull/reset/amend/cherry-pick/etc on macOS and Linux
  • Loading branch information
alexey-lysiuk committed Apr 23, 2017
1 parent bd74cf8 commit 93fa9ac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/version.h
Expand Up @@ -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();
Expand Down

0 comments on commit 93fa9ac

Please sign in to comment.