]> granicus.if.org Git - php/commitdiff
mysql_set_charset now works version undependent for MySQL 4.1.13 and above
authorGeorg Richter <georg@php.net>
Fri, 13 May 2005 13:30:22 +0000 (13:30 +0000)
committerGeorg Richter <georg@php.net>
Fri, 13 May 2005 13:30:22 +0000 (13:30 +0000)
ext/mysqli/php_mysqli.h

index ef420351a915d01284e3d227c2c6e895b456ec8f..3d2cdffb7323f8fd00f08ffd619956398c9041a6 100644 (file)
@@ -99,16 +99,14 @@ typedef struct {
 
 #ifdef PHP_WIN32
 #define PHP_MYSQLI_API __declspec(dllexport)
-#if MYSQL_VERSION_ID > 50005
-#define HAVE_MYSQLI_SET_CHARSET
-#elif MYSQL_VERSION_ID > 40112 && MYSQL_VERSION_ID < 50000
-#define HAVE_MYSQLI_SET_CHARSET
-#endif
 #else
-#define HAVE_MYSQLI_SET_CHARSET
 #define PHP_MYSQLI_API
 #endif
 
+#if MYSQL_VERSION_ID > 40112 && MYSQL_VERSION_ID < 50000
+#define HAVE_MYSQLI_SET_CHARSET
+#endif
+
 #ifdef ZTS
 #include "TSRM.h"
 #endif