From: Wez Furlong Date: Mon, 7 Feb 2005 00:02:51 +0000 (+0000) Subject: centralize this define X-Git-Tag: RELEASE_0_2~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7279fe8ab0a223ce5cc1b3bb12e93efb15d36848;p=php centralize this define --- diff --git a/ext/pdo_odbc/pdo_odbc.c b/ext/pdo_odbc/pdo_odbc.c index b9ab10a5f8..6b351c9dd4 100755 --- a/ext/pdo_odbc/pdo_odbc.c +++ b/ext/pdo_odbc/pdo_odbc.c @@ -30,15 +30,6 @@ #include "php_pdo_odbc.h" #include "php_pdo_odbc_int.h" -#ifdef PHP_WIN32 -# define PDO_ODBC_TYPE "Win32" -#endif - -#ifndef PDO_ODBC_TYPE -# warning Please fix configure to give your ODBC libraries a name -# define PDO_ODBC_TYPE "Unknown" -#endif - /* {{{ pdo_odbc_functions[] */ function_entry pdo_odbc_functions[] = { {NULL, NULL, NULL} diff --git a/ext/pdo_odbc/php_pdo_odbc_int.h b/ext/pdo_odbc/php_pdo_odbc_int.h index a4d473e3b8..7d8842657b 100755 --- a/ext/pdo_odbc/php_pdo_odbc_int.h +++ b/ext/pdo_odbc/php_pdo_odbc_int.h @@ -18,6 +18,15 @@ /* $Id$ */ +#ifdef PHP_WIN32 +# define PDO_ODBC_TYPE "Win32" +#endif + +#ifndef PDO_ODBC_TYPE +# warning Please fix configure to give your ODBC libraries a name +# define PDO_ODBC_TYPE "Unknown" +#endif + /* {{{ Roll a dice, pick a header at random... */ #if HAVE_SQLCLI1_H # include