clover/meson: Define OpenCL header macros
authorPierre Moreau <pierre.morrow@free.fr>
Tue, 17 Dec 2019 17:11:10 +0000 (18:11 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jan 2020 11:12:33 +0000 (11:12 +0000)
commitdda542e912475d0d91d36d6c9f58d8cac2350a7e
tree129a957fe1861052e83067236ea187d2ed208251
parentdd756b704fe89ac83ada2f6261c058c5ac322aba
clover/meson: Define OpenCL header macros

Rather than defining the macros any time right before including an
OpenCL header, set Meson to define them for the whole clover project.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Francisco Jerez <currojerez@riseup.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3137>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3137>
src/gallium/state_trackers/clover/api/dispatch.hpp
src/gallium/state_trackers/clover/core/error.hpp
src/gallium/state_trackers/clover/core/object.hpp
src/gallium/state_trackers/clover/llvm/codegen/common.cpp
src/gallium/state_trackers/clover/meson.build