From e49366850ff01e820cb665f9f83922c92a359e9b Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Thu, 6 Nov 2008 14:21:50 +0000 Subject: MFH: Use win32/php_stdint.h for stdint types on Windows --- ext/mysqlnd/mysqlnd_portability.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ext/mysqlnd/mysqlnd_portability.h') diff --git a/ext/mysqlnd/mysqlnd_portability.h b/ext/mysqlnd/mysqlnd_portability.h index 9219fc3302..09a52f4dda 100644 --- a/ext/mysqlnd/mysqlnd_portability.h +++ b/ext/mysqlnd/mysqlnd_portability.h @@ -69,7 +69,6 @@ typedef int8 int8_t; /* Signed integer >= 8 bits */ #endif #endif - #ifndef HAVE_UINT8_T #ifndef HAVE_UINT8 typedef unsigned char uint8_t; /* Unsigned integer >= 8 bits */ @@ -110,7 +109,6 @@ error "Neither int nor long is of 4 bytes width" #endif #endif /* HAVE_INT32_T */ - #ifndef HAVE_UINT32_T #ifdef HAVE_UINT32 typedef uint32 uint32_t; @@ -123,7 +121,6 @@ typedef unsigned long uint32_t; #endif #endif /* HAVE_UINT32_T */ - #ifndef HAVE_INT64_T #ifdef HAVE_INT64 typedef int64 int64_t; @@ -142,7 +139,6 @@ typedef signed long long int64_t; #endif #endif /* HAVE_INT64_T */ - #ifndef HAVE_UINT64_T #ifdef HAVE_UINT64 typedef uint64 uint64_t; @@ -179,7 +175,7 @@ typedef unsigned long long uint64_t; #endif -#define int1store(T,A) do { *((zend_uchar*) (T)) = (A); } while(0) +#define int1store(T,A) do { *((int8_t*) (T)) = (A); } while(0) #define uint1korr(A) (*(((uint8_t*)(A)))) /* Bit values are sent in reverted order of bytes, compared to normal !!! */ -- cgit v1.2.1