diff --git a/res/res_http_post.c b/res/res_http_post.c index 9f5b1837a2..dca18a6ad3 100644 --- a/res/res_http_post.c +++ b/res/res_http_post.c @@ -55,7 +55,7 @@ #ifdef GMIME_TYPE_CONTENT_TYPE #define AST_GMIME_VER_24 #endif -#if GMIME_MAJOR_VERSION >= 3 +#if defined(GMIME_MAJOR_VERSION) && (GMIME_MAJOR_VERSION >= 3) #define AST_GMIME_VER_30 #endif