[arrayfire] 228/248: Added version checks for getBackendId
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Nov 17 15:54:30 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch dfsg-clean
in repository arrayfire.
commit cf0ab915a6233494a1463b4636fb6ab4398aee82
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date: Tue Nov 10 16:14:00 2015 -0500
Added version checks for getBackendId
---
include/af/backend.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/af/backend.h b/include/af/backend.h
index 1fe7567..93d8d8d 100644
--- a/include/af/backend.h
+++ b/include/af/backend.h
@@ -44,6 +44,7 @@ AFAPI af_err af_get_backend_count(unsigned* num_backends);
AFAPI af_err af_get_available_backends(int* backends);
#endif
+#if AF_API_VERSION >= 32
/**
\param[out] backend takes one of the values of enum \ref af_backend
\param[in] in is the array who's backend is to be queried
@@ -52,6 +53,7 @@ AFAPI af_err af_get_available_backends(int* backends);
\ingroup unified_func_getbackendid
*/
AFAPI af_err af_get_backend_id(af_backend *backend, const af_array in);
+#endif
#ifdef __cplusplus
}
@@ -89,6 +91,7 @@ AFAPI unsigned getBackendCount();
AFAPI int getAvailableBackends();
#endif
+#if AF_API_VERSION >= 32
/**
\param[in] in is the array who's backend is to be queried
\returns \ref af_backend which is the backend on which the array is created
@@ -96,6 +99,7 @@ AFAPI int getAvailableBackends();
\ingroup unified_func_getbackendid
*/
AFAPI af::Backend getBackendId(const array &in);
+#endif
}
#endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list