android.hpp: custom header guard of _clang_

In order not to have ambiguous definitions, exclude the functions for other compilers
pull/431/head
danyougle 2022-04-13 22:33:12 +02:00 committed by GitHub
parent 8d298af10b
commit f3f3c88710
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@
#ifndef CLBLAST_ANDROID_HPP_
#define CLBLAST_ANDROID_HPP_
#ifndef __clang__ // not to include custom impl to avoid ambiguous definition
// =================================================================================================
#include <cstdlib>
@ -42,6 +42,6 @@ inline int stoi( const std::string& str, std::size_t* pos = 0, int base = 10) {
}
// =================================================================================================
#endif // clang header guard
// CLBLAST_ANDROID_HPP_
#endif