From 46e07ed8eb64ff5a7473ac51de2e39c5a8a6ab3d Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Fri, 10 Sep 2021 16:38:35 +0200 Subject: Include "gettext.h" even when "platform.h" is unavailable --- src/include/gnunet_common.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index 3ee2a070a..ca3ddceaa 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h @@ -61,6 +61,14 @@ #include #endif + +/* This is also included in platform.h, but over there a couple of + GNUnet-specific gettext-related macros are defined in addition to including + the header file. Because this header file uses gettext, this include + statement makes sure gettext macros are defined even when platform.h is + unavailable. */ +#include "gettext.h" + #ifdef __cplusplus extern "C" { #if 0 /* keep Emacsens' auto-indent happy */ -- cgit v1.2.3