From 0615affffa4e1ed0f3fd13d332be45e48d1b1415 Mon Sep 17 00:00:00 2001 From: philsmd Date: Sat, 11 Feb 2017 13:18:38 +0100 Subject: [PATCH] travis test: workaround undefined _WIN32 with a sed fix --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 30b8ab16c..66226d6fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,6 @@ +# this is a workaround because some OpenCL headers cause problems with older gcc compilers (undefined macro: _WIN32) +before_install: + - sed -i 's/if _WIN32/if defined (_WIN32)/' deps/OpenCL-Headers/CL/cl_platform.h os: - linux - osx