瀏覽代碼

Add define for instrumentation code

bel2125 7 年之前
父節點
當前提交
7259a80f1d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -188,7 +188,7 @@ static void DEBUG_TRACE_FUNC(const char *func,
 #endif
 #endif
 
 
 
 
-#if defined(__GNUC__) && defined(DEBUG)
+#if defined(__GNUC__) && defined(GCC_INSTRUMENTATION)
 void __cyg_profile_func_enter(void *this_fn, void *call_site)
 void __cyg_profile_func_enter(void *this_fn, void *call_site)
     __attribute__((no_instrument_function));
     __attribute__((no_instrument_function));