Gbp-Pq: Name 0068-move-PTHREAD_CHECK-to-pocl_cl.h.patch
#define ALIGN_CACHE(x) x
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+POCL_EXPORT
+void pocl_abort_on_pthread_error (int status, unsigned line, const char *func);
+
+#ifdef __cplusplus
+}
+#endif
+
+#define PTHREAD_CHECK(code) \
+ pocl_abort_on_pthread_error ((code), __LINE__, __FUNCTION__);
+
/* Generic functionality for handling different types of
OpenCL (host) objects. */
cl_uint num_events_in_wait_list,
const cl_event * event_wait_list);
-void pocl_abort_on_pthread_error (int status, unsigned line, const char *func);
-
-#define PTHREAD_CHECK(code) \
- pocl_abort_on_pthread_error ((code), __LINE__, __FUNCTION__);
-
void pocl_update_event_queued (cl_event event);
POCL_EXPORT