andrey                                   Tue, 25 Aug 2009 14:32:10 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=287698

Log:
MFH: fix of the fix

Changed paths:
    U   php/php-src/branches/PHP_5_3/ext/mysqlnd/mysqlnd_portability.h

Modified: php/php-src/branches/PHP_5_3/ext/mysqlnd/mysqlnd_portability.h
===================================================================
--- php/php-src/branches/PHP_5_3/ext/mysqlnd/mysqlnd_portability.h      
2009-08-25 14:31:29 UTC (rev 287697)
+++ php/php-src/branches/PHP_5_3/ext/mysqlnd/mysqlnd_portability.h      
2009-08-25 14:32:10 UTC (rev 287698)
@@ -205,16 +205,20 @@
 #endif

 #ifndef MYSQLND_LL_SPEC
-#if SIZEOF_LONG == 8
-#define MYSQLND_LL_SPEC        "%li"
+  #if SIZEOF_LONG == 8
+    #define MYSQLND_LL_SPEC "%li"
+  #elif SIZEOF_LONG == 4
+    #define MYSQLND_LL_SPEC "%lli"
+  #endif
 #endif
-#endif

 #ifndef MYSQLND_LLU_SPEC
-#if SIZEOF_LONG == 8
-#define MYSQLND_LLU_SPEC       "%li"
-#endif
-#endif
+  #if SIZEOF_LONG == 8
+    #define MYSQLND_LLU_SPEC "%lu"
+  #elif SIZEOF_LONG == 4
+    #define MYSQLND_LLU_SPEC "%llu"
+   #endif
+#endif /* MYSQLND_LLU_SPEC*/


 #define MYSQLND_SZ_T_SPEC "%zd"

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to