Kouhei Sutou
null+****@clear*****
Tue Dec 13 16:43:47 JST 2016
Kouhei Sutou 2016-12-13 16:43:47 +0900 (Tue, 13 Dec 2016) New Revision: 8b746b94f9dc6a69c5317833fc3ca2920efaaafe https://github.com/groonga/groonga/commit/8b746b94f9dc6a69c5317833fc3ca2920efaaafe Message: Enable alloc_size only for GCC 4.3 or later Modified files: include/groonga/groonga.h Modified: include/groonga/groonga.h (+2 -1) =================================================================== --- include/groonga/groonga.h 2016-12-09 11:31:36 +0900 (a88ef74) +++ include/groonga/groonga.h 2016-12-13 16:43:47 +0900 (74e1919) @@ -1068,7 +1068,8 @@ GRN_API grn_log_level grn_logger_get_max_level(grn_ctx *ctx); # if __has_attribute(__alloc_size__) # define HAVE_ALLOC_SIZE_ATTRIBUTE # endif /* __has_attribute(__alloc_size__) */ -#elif defined(__GNUC__) +#elif defined(__GNUC__) && \ + ((__GNUC__ >= 5) || (__GNUC__ > 4 && __GNUC_MINOR__ >= 3)) # define HAVE_ALLOC_SIZE_ATTRIBUTE #endif /* __clang__ */ -------------- next part -------------- HTML����������������������������... 下载