diff options
author | danyougle <97888298+danyougle@users.noreply.github.com> | 2022-04-13 22:33:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-13 22:33:12 +0200 |
commit | f3f3c88710deb00f2ee42dc92ed9c7debdc1392a (patch) | |
tree | 49689d3d9d3f0236bfcb1f4a30c94a6d8dabc2c8 | |
parent | 8d298af10b7a193ed32506d0e26ec8a4a0cf1f2f (diff) |
android.hpp: custom header guard of _clang_
In order not to have ambiguous definitions, exclude the functions for other compilers
-rw-r--r-- | src/utilities/android.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utilities/android.hpp b/src/utilities/android.hpp index 64e9b3f4..b73986bb 100644 --- a/src/utilities/android.hpp +++ b/src/utilities/android.hpp @@ -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 |