fixes the error with OpenCL depreciation warnings (#1394)

pull/1402/head
Dean Lee 5 years ago committed by GitHub
parent e171a7a047
commit 25ab2521ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      selfdrive/camerad/cameras/camera_frame_stream.h
  2. 1
      selfdrive/common/visionbuf.h
  3. 1
      selfdrive/common/visionbuf_cl.c
  4. 1
      selfdrive/modeld/models/commonmodel.h
  5. 1
      selfdrive/modeld/transforms/transform.h

@ -3,6 +3,7 @@
#include <stdbool.h>
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#ifdef __APPLE__
#include <OpenCL/cl.h>
#else

@ -1,6 +1,7 @@
#ifndef IONBUF_H
#define IONBUF_H
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#ifdef __APPLE__
#include <OpenCL/cl.h>
#else

@ -8,6 +8,7 @@
#include <sys/mman.h>
#include <sys/types.h>
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#ifdef __APPLE__
#include <OpenCL/cl.h>
#else

@ -1,6 +1,7 @@
#ifndef COMMONMODEL_H
#define COMMONMODEL_H
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#include <CL/cl.h>
#include "common/mat.h"

@ -4,6 +4,7 @@
#include <inttypes.h>
#include <stdbool.h>
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#ifdef __APPLE__
#include <OpenCL/cl.h>
#else

Loading…
Cancel
Save