diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-06-17 18:48:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-17 18:48:09 +0200 |
commit | 9df1b5b04923340aca69ce3ed4565fceeb042c01 (patch) | |
tree | d01b3c5a8bfb7668c5abac4efbb4e70bbb203b6d /src/feh.h | |
parent | a624883d92ea54886b739f1000e39ccf1afc5577 (diff) | |
parent | 4ef0c142d96d97e517455b5711782fa5706cc2ff (diff) |
Merge pull request #540 from tbvdm/strverscmp
Enable --version-sort on systems without strverscmp()
Diffstat (limited to 'src/feh.h')
-rw-r--r-- | src/feh.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * strverscmp(3) is a GNU extension. In most supporting C libraries it * requires _GNU_SOURCE to be defined. */ -#ifdef HAVE_VERSCMP +#ifdef HAVE_STRVERSCMP #define _GNU_SOURCE #endif @@ -182,6 +182,9 @@ gib_list *feh_list_jump(gib_list * root, gib_list * l, int direction, int num); #ifdef HAVE_INOTIFY void feh_event_handle_inotify(void); #endif +#ifndef HAVE_STRVERSCMP +int strverscmp(const char *l0, const char *r0); +#endif /* Imlib stuff */ extern Display *disp; |