Skip to content

Commit cf0ab91

Browse files
committed
Added version checks for getBackendId
1 parent 4242378 commit cf0ab91

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

include/af/backend.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ AFAPI af_err af_get_backend_count(unsigned* num_backends);
4444
AFAPI af_err af_get_available_backends(int* backends);
4545
#endif
4646

47+
#if AF_API_VERSION >= 32
4748
/**
4849
\param[out] backend takes one of the values of enum \ref af_backend
4950
\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);
5253
\ingroup unified_func_getbackendid
5354
*/
5455
AFAPI af_err af_get_backend_id(af_backend *backend, const af_array in);
56+
#endif
5557

5658
#ifdef __cplusplus
5759
}
@@ -89,13 +91,15 @@ AFAPI unsigned getBackendCount();
8991
AFAPI int getAvailableBackends();
9092
#endif
9193

94+
#if AF_API_VERSION >= 32
9295
/**
9396
\param[in] in is the array who's backend is to be queried
9497
\returns \ref af_backend which is the backend on which the array is created
9598
9699
\ingroup unified_func_getbackendid
97100
*/
98101
AFAPI af::Backend getBackendId(const array &in);
102+
#endif
99103

100104
}
101105
#endif

0 commit comments

Comments
 (0)