Check for __clang__ too

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2025-11-15 10:33:27 +00:00 committed by GitHub
parent 7f7649f13d
commit 5465f17916
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -135,7 +135,7 @@ uint64_t getSystemRamMiB()
// transforming bytes -> mib
return memsize / 1024 / 1024;
}
#elif defined(__GNUC__)
#elif defined(__GNUC__) || defined(__clang__)
#warning getSystemRam not implemented on this platform; detecting amount of installed RAM will not work
#endif
return 0;