mirror of
https://github.com/fluencelabs/musl
synced 2025-04-24 23:02:14 +00:00
general policy is that all source files defining a public API or an ABI mechanism referenced by a public header should include the public header that declares the interface, so that the compiler or analysis tools can check the consistency of the declarations. Alexander Monakov pointed out a number of violations of this principle a few years back. fix them now.
7 lines
65 B
C
7 lines
65 B
C
#include <stdlib.h>
|
|
|
|
long labs(long a)
|
|
{
|
|
return a>0 ? a : -a;
|
|
}
|