From: Andrey Hristov Date: Tue, 19 Jan 2010 12:13:06 +0000 (+0000) Subject: Make it GCC only feature (tracing). VC7 and up do the work X-Git-Tag: php-5.4.0alpha1~423 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac1a5cd0f7b74329ab5775b5db27945655f631d7;p=php Make it GCC only feature (tracing). VC7 and up do the work too and it might be tweaked later. --- diff --git a/ext/mysqlnd/mysqlnd_debug.h b/ext/mysqlnd/mysqlnd_debug.h index de8438d3ee..fa6246f9f2 100644 --- a/ext/mysqlnd/mysqlnd_debug.h +++ b/ext/mysqlnd/mysqlnd_debug.h @@ -80,7 +80,7 @@ PHPAPI void _mysqlnd_free(void *ptr MYSQLND_MEM_D); PHPAPI char * mysqlnd_get_backtrace(TSRMLS_D); -#if !defined(PHP_WIN32) +#if defined(__GNUC__) #define DBG_INF_EX(dbg_obj, msg) do { if (dbg_skip_trace == FALSE) (dbg_obj)->m->log((dbg_obj), __LINE__, __FILE__, -1, "info : ", (msg)); } while (0) #define DBG_ERR_EX(dbg_obj, msg) do { if (dbg_skip_trace == FALSE) (dbg_obj)->m->log((dbg_obj), __LINE__, __FILE__, -1, "error: ", (msg)); } while (0) #define DBG_INF_FMT_EX(dbg_obj, ...) do { if (dbg_skip_trace == FALSE) (dbg_obj)->m->log_va((dbg_obj), __LINE__, __FILE__, -1, "info : ", __VA_ARGS__); } while (0)