Skip to content

Commit bbe06c4

Browse files
authored
Merge pull request #305 from stesie/issue-304
Alias std::isfinite to isfinite
2 parents 37ffdc6 + ebdd866 commit bbe06c4

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

Vagrantfile

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,30 @@ Vagrant.configure("2") do |config|
144144
end
145145

146146

147+
#
148+
# ubuntu xenial(16.04) box with PHP 7.1.3, V8 5.2
149+
# (to reproduce issue #304)
150+
#
151+
config.vm.define "xenial-v8-5.2" do |i|
152+
i.vm.box = "ubuntu/xenial64"
153+
i.vm.synced_folder ".", "/data/v8js"
154+
155+
i.vm.provision "shell", inline: <<-SHELL
156+
gpg --keyserver keys.gnupg.net --recv 7F438280EF8D349F
157+
gpg --armor --export 7F438280EF8D349F | apt-key add -
158+
159+
apt-get update
160+
apt-get install -y software-properties-common gdb tmux git tig curl apache2-utils lcov
161+
162+
add-apt-repository ppa:ondrej/php
163+
add-apt-repository ppa:pinepain/libv8-5.2
164+
apt-get update
165+
apt-get install -y php7.1-dev libv8-5.2-dbg libv8-5.2-dev
166+
SHELL
167+
end
168+
169+
147170
config.vm.provision "shell", inline: <<-SHELL
148-
mkdir -p /data/build && chown vagrant:vagrant /data/build
171+
mkdir -p /data/build && chown 1000:1000 /data/build
149172
SHELL
150173
end

php_v8js_macros.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
/* php.h requires the isnan() macro, which is removed by c++ <cmath> header,
3434
* work around: re-define the macro to std::isnan function */
3535
#define isnan(a) std::isnan(a)
36+
37+
/* likewise isfinite */
38+
#define isfinite(a) std::isfinite(a)
3639
#endif
3740

3841
extern "C" {

0 commit comments

Comments
 (0)