Skip to content

Commit

Permalink
Detect strverscmp support properly
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 authored and caclark committed Sep 1, 2022
1 parent ea6be8a commit 87042fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.h.in
Expand Up @@ -161,7 +161,7 @@
#define HAVE_STRING_H 1

/* Define to 1 if you have the `strverscmp' function. */
#define HAVE_STRVERSCMP 1
#mesondefine HAVE_STRVERSCMP

/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
Expand Down
5 changes: 5 additions & 0 deletions meson.build
Expand Up @@ -446,6 +446,11 @@ else
summary({'nl_langinfo' : ['nl_langinfo not found - first weekday depends on locale:', false, 'first weekday defaults to Monday']}, section : 'Documentation', bool_yn : true)
endif

result = cc.has_function('strverscmp', prefix : '#include <string.h>')
if result
conf_data.set('HAVE_STRVERSCMP', 1)
endif

conf_data.set_quoted('GETTEXT_PACKAGE', meson.project_name())
conf_data.set_quoted('GQ_APPDIR', gq_appdir)
conf_data.set_quoted('GQ_BINDIR', gq_bindir)
Expand Down

0 comments on commit 87042fa

Please sign in to comment.