diff --git a/core/git-access.h b/core/git-access.h index 54b15dd2c..5c18b218d 100644 --- a/core/git-access.h +++ b/core/git-access.h @@ -18,8 +18,6 @@ extern "C" { #define CLOUD_HOST_PATTERN "ssrf-cloud-..\\.subsurface-divelog\\.org" #define CLOUD_HOST_GENERIC "cloud.subsurface-divelog.org" -#define ARRAY_SIZE(array) (sizeof(array)/sizeof(array[0])) - enum remote_transport { RT_LOCAL, RT_HTTPS, RT_SSH, RT_OTHER }; struct git_oid; diff --git a/core/load-git.c b/core/load-git.c index 224baa1b0..47c769b7d 100644 --- a/core/load-git.c +++ b/core/load-git.c @@ -30,6 +30,8 @@ #include "tag.h" #include "subsurface-time.h" +#define ARRAY_SIZE(array) (sizeof(array)/sizeof(array[0])) + const char *saved_git_id = NULL; struct git_parser_state {