Skip to content

Commit

Permalink
_simple_tree.c: Fix compilation error with gcc 14
Browse files Browse the repository at this point in the history
Non standard `qsort_r` is not defined unless _GNU_SOURCE is defined or
`--std=gnu99` flag is used.
  • Loading branch information
ales-erjavec committed May 9, 2024
1 parent 5ada6c4 commit a909234
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Orange/classification/_simple_tree.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#if (defined __GLIBC__ || defined __GNU__ || defined __linux__)
#define _GNU_SOURCE
#endif
#include <math.h>
#include <float.h>
#include <assert.h>
Expand Down

0 comments on commit a909234

Please sign in to comment.