ROCm / hip-tests

MIT License
29 stars 31 forks source link

Fix compilation errors with musl libc #463

Open AngryLoki opened 5 months ago

AngryLoki commented 5 months ago
  1. error.h is a GNU extension and is not provided by musl. Replaced with fprintf.
  2. NULL is defined as a value of type std::nullptr_t, reinterpret_cast from std::nullptr_t to void ** is not allowed[1]. But static_cast is allowed.

[1] reinterpret_cast conversion - cppreference.com

AngryLoki commented 5 months ago

(accidentally closed wrong pull-request)