[clinfo] 19/36: More header cleanup
Andreas Beckmann
anbe at moszumanska.debian.org
Wed Feb 17 18:32:37 UTC 2016
This is an automated email from the git hooks/post-receive script.
anbe pushed a commit to branch master
in repository clinfo.
commit 58bd8906ca6ba7a58df3b25b4c6e00e5dcd175b7
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date: Wed Dec 9 22:05:05 2015 +0100
More header cleanup
---
src/error.h | 3 +++
src/ext.h | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/src/error.h b/src/error.h
index 136439f..911c720 100644
--- a/src/error.h
+++ b/src/error.h
@@ -2,6 +2,9 @@
#include <stdio.h>
+#include "ext.h"
+#include "fmtmacros.h"
+
cl_int error;
int
diff --git a/src/ext.h b/src/ext.h
index 3fb8faf..6094c52 100644
--- a/src/ext.h
+++ b/src/ext.h
@@ -1,6 +1,9 @@
/* Include OpenCL header, and define OpenCL extensions, since what is and is not
* available in the official headers is very system-dependent */
+#ifndef _EXT_H
+#define _EXT_H
+
#ifdef __APPLE__
#include <OpenCL/opencl.h>
#else
@@ -159,3 +162,4 @@ typedef cl_ulong cl_device_partition_property_ext;
#define CL_DEVICE_SIMULTANEOUS_INTEROPS_INTEL 0x4104
#define CL_DEVICE_NUM_SIMULTANEOUS_INTEROPS_INTEL 0x4105
+#endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/clinfo.git
More information about the Pkg-opencl-commits
mailing list