From: Antony Dovgal Date: Tue, 6 Sep 2005 21:11:19 +0000 (+0000) Subject: workaround for some b0rked compilers X-Git-Tag: RELEASE_0_9_0~282 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=726f3e3881cc7837fcc72b61353c9f82689a45e5;p=php workaround for some b0rked compilers --- diff --git a/ext/oci8/php_oci8_int.h b/ext/oci8/php_oci8_int.h index dc969715cc..dde57e5974 100644 --- a/ext/oci8/php_oci8_int.h +++ b/ext/oci8/php_oci8_int.h @@ -193,14 +193,20 @@ typedef struct { /* php_oci_out_column {{{ */ } php_oci_out_column; /* }}} */ /* {{{ macros */ + +#ifdef PHP_WIN32 +#define PHP_OCI_CALL(func, params) \ + func params; \ + if (OCI_G(debug_mode)) { \ + php_printf ("OCI8 DEBUG: " #func " at (%s:%d) \n", __FILE__, __LINE__); \ + } +#else #define PHP_OCI_CALL(func, params) \ func params; \ if (OCI_G(debug_mode)) { \ php_printf ("OCI8 DEBUG: " #func " in %s() (%s:%d) \n", __FUNCTION__, __FILE__, __LINE__); \ } -/* -\ -*/ +#endif #define PHP_OCI_HANDLE_ERROR(connection, errcode) \ { \