diff --git a/configure.ac b/configure.ac index 03dc1d2f5..c087d872b 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,6 @@ AC_INIT([rofi], [1.6.1-dev], [https://github.com/davatorium/rofi/],[],[https://r AC_CONFIG_SRCDIR([source/rofi.c]) AC_CONFIG_HEADER([config.h]) -AH_BOTTOM([#include "gitconfig.h"]) dnl --------------------------------------------------------------------- dnl Lex & Bison language parser. diff --git a/source/rofi.c b/source/rofi.c index fc7ba62c9..469d383b1 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -48,10 +48,12 @@ #include #ifdef USE_NK_GIT_VERSION -#include "nkutils-git-version.h" -#ifdef NK_GIT_VERSION -#define GIT_VERSION NK_GIT_VERSION -#endif + #include "nkutils-git-version.h" + #ifdef NK_GIT_VERSION + #define GIT_VERSION NK_GIT_VERSION + #endif +#else + #include #endif #include "resources.h"