summaryrefslogtreecommitdiff
path: root/src/feh.h
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-06-17 18:48:09 +0200
committerGitHub <noreply@github.com>2020-06-17 18:48:09 +0200
commit9df1b5b04923340aca69ce3ed4565fceeb042c01 (patch)
treed01b3c5a8bfb7668c5abac4efbb4e70bbb203b6d /src/feh.h
parenta624883d92ea54886b739f1000e39ccf1afc5577 (diff)
parent4ef0c142d96d97e517455b5711782fa5706cc2ff (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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/feh.h b/src/feh.h
index a76d66f..e735871 100644
--- a/src/feh.h
+++ b/src/feh.h
@@ -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;