mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
MFH:because we use int64_t we need corresponding printf modifiers. the type
can be different on 32 and 64 bit, thus we can't use ld and lld but C helps us with inttypes.h and PRId64 and PRIu64 modifiers (without the %)
This commit is contained in:
parent
07fc51d559
commit
91a4502914
@ -141,7 +141,7 @@ typedef struct _mysqli_property_entry {
|
||||
#if !defined(MYSQLI_USE_MYSQLND)
|
||||
typedef struct {
|
||||
char error_msg[LOCAL_INFILE_ERROR_LEN];
|
||||
void *userdata;
|
||||
void *userdata;
|
||||
} mysqli_local_infile;
|
||||
#endif
|
||||
|
||||
@ -161,10 +161,12 @@ typedef __int64 my_longlong;
|
||||
# else
|
||||
# define PHP_MYSQLI_API
|
||||
# endif
|
||||
#define MYSQLI_LLU_SPEC "%llu"
|
||||
#define MYSQLI_LL_SPEC "%lld"
|
||||
/* we need this for PRIu64 and PRId64 */
|
||||
#include <inttypes.h>
|
||||
#define MYSQLI_LLU_SPEC "%" PRIu64
|
||||
#define MYSQLI_LL_SPEC "%" PRId64
|
||||
#define L64(x) x##LL
|
||||
typedef long long my_longlong;
|
||||
typedef int64_t my_longlong;
|
||||
#endif
|
||||
|
||||
#ifdef ZTS
|
||||
|
Loading…
Reference in New Issue
Block a user