From f3f3c88710deb00f2ee42dc92ed9c7debdc1392a Mon Sep 17 00:00:00 2001 From: danyougle <97888298+danyougle@users.noreply.github.com> Date: Wed, 13 Apr 2022 22:33:12 +0200 Subject: android.hpp: custom header guard of _clang_ In order not to have ambiguous definitions, exclude the functions for other compilers --- src/utilities/android.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utilities/android.hpp') 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 @@ -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 -- cgit v1.2.3