Files
angle/include/angle_cl.h
T
John Plate 9e1ccb240f Workaround for missing include in OpenCL headers
Bug: angleproject:5759
Change-Id: Ieeb5a251e614a4df1b5362dee474b368f362e0fc
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2826121
Commit-Queue: John Plate <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
2021-04-14 16:48:24 +00:00

28 lines
803 B
C

//
// Copyright 2021 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// angle_cl.h:
// Includes all necessary CL headers and definitions for ANGLE.
//
#ifndef ANGLECL_H_
#define ANGLECL_H_
// Workaround: The OpenCL headers use 'intptr_t' but don't include 'stdint.h' on Windows.
// TODO(jplate): Remove after the CL headers are fixed.
#include <stdint.h>
#define CL_TARGET_OPENCL_VERSION 300
#define CL_USE_DEPRECATED_OPENCL_1_0_APIS
#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#define CL_USE_DEPRECATED_OPENCL_2_0_APIS
#define CL_USE_DEPRECATED_OPENCL_2_1_APIS
#define CL_USE_DEPRECATED_OPENCL_2_2_APIS
#include "CL/opencl.h"
#endif // ANGLECL_H_