Skip to content

Commit fcac184

Browse files
Merge pull request #459 from Wuerfel21/W21-add-labs
Add missing labs() function to stdlib.h
2 parents e8dd3c0 + bfb4322 commit fcac184

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/stdlib.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88

99
#ifdef __FLEXC__
1010
# ifndef abs
11-
#define abs(x) __builtin_abs(x)
11+
# define abs(x) __builtin_abs(x)
12+
# endif
13+
# ifndef labs
14+
# define labs(x) __builtin_abs(x)
1215
# endif
1316
#endif
1417

0 commit comments

Comments
 (0)