Skip to content

Commit

Permalink
Include locale.h in gettext.h
Browse files Browse the repository at this point in the history
When building with coverage enabled, the compiler complains about
missing definitions for setlocale and LC_ALL. These can be found in
locale.h, and by including it in gettext.h, we can ensure that we won't
see any more such issues.
  • Loading branch information
nirenjan committed Jun 13, 2022
1 parent 0ac3a3d commit ba9348b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gettext.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#if ENABLE_NLS

/* Get declarations of GNU message catalog functions. */
# include <locale.h>
# include <libintl.h>

/* You can set the DEFAULT_TEXT_DOMAIN macro to specify the domain used by
Expand Down

0 comments on commit ba9348b

Please sign in to comment.