summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_debug.h
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2010-01-19 12:13:06 +0000
committerAndrey Hristov <andrey@php.net>2010-01-19 12:13:06 +0000
commitac1a5cd0f7b74329ab5775b5db27945655f631d7 (patch)
treed74d23ef14a4ce569e6ff277f068c81c0183b2c3 /ext/mysqlnd/mysqlnd_debug.h
parent95a4f5fabee718f2de6b631c97deb4c52b1da3f5 (diff)
downloadphp-git-ac1a5cd0f7b74329ab5775b5db27945655f631d7.tar.gz
Make it GCC only feature (tracing). VC7 and up do the work
too and it might be tweaked later.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_debug.h')
-rw-r--r--ext/mysqlnd/mysqlnd_debug.h2
1 files changed, 1 insertions, 1 deletions
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)