Skip to content

Commit df0578f

Browse files
committed
versionsort is only available on linux
1 parent ccb03c6 commit df0578f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

w_filepicker.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@
1717
#include <unistd.h>
1818
#include <errno.h>
1919

20-
#ifdef WINDOWS
21-
#include "scandir.h"
22-
#define sortfn alphasort
20+
#if defined(WINDOWS)
21+
# include "scandir.h"
22+
# define sortfn alphasort
23+
#elif defined(__linux__)
24+
# define sortfn versionsort
2325
#else
24-
#define sortfn versionsort
26+
# define sortfn alphasort
2527
#endif
2628

2729
#define CWD_BUF_SIZE 4096

0 commit comments

Comments
 (0)