Kouhei Sutou
null+****@clear*****
Sat Mar 19 00:09:55 JST 2016
Kouhei Sutou 2016-03-19 00:09:55 +0900 (Sat, 19 Mar 2016) New Revision: a64953c533fef2a7161073fd708aeca0670fbd79 https://github.com/groonga/groonga/commit/a64953c533fef2a7161073fd708aeca0670fbd79 Message: Support memory debug mode on Windows Modified files: lib/ctx.c Modified: lib/ctx.c (+6 -2) =================================================================== --- lib/ctx.c 2016-03-19 00:06:54 +0900 (151df19) +++ lib/ctx.c 2016-03-19 00:09:55 +0900 (00484ee) @@ -305,7 +305,8 @@ grn_get_global_error_message(void) inline static void grn_alloc_info_set_backtrace(char *buffer, size_t size) { -# define N_TRACE_LEVEL 100 +# ifdef HAVE_BACKTRACE +# define N_TRACE_LEVEL 100 static void *trace[N_TRACE_LEVEL]; char **symbols; int i, n, rest; @@ -334,7 +335,10 @@ grn_alloc_info_set_backtrace(char *buffer, size_t size) } else { buffer[0] = '\0'; } -# undef N_TRACE_LEVEL +# undef N_TRACE_LEVEL +# else /* HAVE_BACKTRACE */ + buffer[0] = '\0'; +# endif /* HAVE_BACKTRACE */ } inline static void -------------- next part -------------- HTML����������������������������...下载