Re: com php-src: Temporary fix for windows build: ext/mbstring/libmbfl/mbfl/mbfilter.c ext/mbstring/libmbfl/mbfl/mbfilter.h

From: Date: Fri, 21 Jul 2017 20:01:28 +0000
Subject: Re: com php-src: Temporary fix for windows build: ext/mbstring/libmbfl/mbfl/mbfilter.c ext/mbstring/libmbfl/mbfl/mbfilter.h
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-98698@lists.php.net to get a copy of this message
Hi Nikita 2017-07-20 18:29 GMT+02:00 Nikita Popov <nikic@php.net>: > Commit: 22a5f554a8766d63fd2c2ce91a90ebacb13c0f6a > Author: Nikita Popov <nikita.ppv@gmail.com> Thu, 20 Jul 2017 18:29:44 +0200 > Parents: 77cb7bd837b128340fe9a2511681dd0d3c7222c5 > Branches: master > > Link: > http://git.php.net/?p=php-src.git;a=commitdiff;h=22a5f554a8766d63fd2c2ce91a90ebacb13c0f6a > > Log: > Temporary fix for windows build > > This API should be changed to stop using negative offsets. For now > I'm replacing ssize_t with long. ssize_t is available on Windows, its defined in <BaseTsd.h> in all caps, so something along the lines of: #ifdef PHP_WIN32 # include <BaseTsd.h> typedef SSIZE_T ssize_t; #endif Or you can manually define it like so (for x86+x64): #ifdef PHP_WIN32 # ifdef _WIN64 typedef unsigned __int64 ssize_t; # else typedef _W64 unsigned int ssize_t; # endif #endif -- regards, Kalle Sommer Nielsen kalle@php.net

« previous php.cvs (#98698) next »