svn: /php/php-src/trunk/ext/mysqlnd/ mysqlnd_portability.h
| From: | Andrey Hristov | Date: | Tue, 25 Aug 2009 14:30:37 +0000 |
| Subject: | svn: /php/php-src/trunk/ext/mysqlnd/ mysqlnd_portability.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-60222@lists.php.net to get a copy of this message | ||
andrey Tue, 25 Aug 2009 14:30:37 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=287696
Log:
Better fix. A fix of the fix
Changed paths:
U php/php-src/trunk/ext/mysqlnd/mysqlnd_portability.h
Modified: php/php-src/trunk/ext/mysqlnd/mysqlnd_portability.h
===================================================================
--- php/php-src/trunk/ext/mysqlnd/mysqlnd_portability.h 2009-08-25 14:25:01 UTC (rev 287695)
+++ php/php-src/trunk/ext/mysqlnd/mysqlnd_portability.h 2009-08-25 14:30:37 UTC (rev 287696)
@@ -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_LL_SPEC "%llu"
+ #endif
+#endif /* MYSQLND_LLU_SPEC*/
#define MYSQLND_SZ_T_SPEC "%zd"