diff options
author | Andrey Hristov <andrey@php.net> | 2010-01-19 12:13:06 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2010-01-19 12:13:06 +0000 |
commit | 77d6830d391c1266a76842ec1e08ca3c9d3a7478 (patch) | |
tree | 28be6df4ccb9680e348a2416f48d9c32c1f9abe2 /ext/mysqlnd/mysqlnd_debug.h | |
parent | a85c26bbaa23c3981a65491efa59a47e632ed0e1 (diff) | |
download | php-git-77d6830d391c1266a76842ec1e08ca3c9d3a7478.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.h | 2 |
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) |