From: Diego 'Flameeyes' Pettenò Date: Thu, 13 Nov 2008 12:22:13 +0000 (+0100) Subject: Move conditional inclusion of locale.h further down. X-Git-Tag: v1.0.19~10^2~2 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=01285f20d9f1c51d251bc143dd1c9f2ad026f87b;p=alsa-utils.git Move conditional inclusion of locale.h further down. Without this patch, ENABLE_NLS is checked before ever being defined (aconfig.h is not yet included), and thus locale.h would never be included even when NLS is enabled. Signed-off-by: Diego 'Flameeyes' Pettenò --- diff --git a/speaker-test/speaker-test.c b/speaker-test/speaker-test.c index 57a7cbc..b8cd5c8 100644 --- a/speaker-test/speaker-test.c +++ b/speaker-test/speaker-test.c @@ -44,9 +44,6 @@ #include #include #include -#ifdef ENABLE_NLS -#include -#endif #include #define ALSA_PCM_NEW_HW_PARAMS_API @@ -59,6 +56,10 @@ #include "gettext.h" #include "version.h" +#ifdef ENABLE_NLS +#include +#endif + enum { TEST_PINK_NOISE = 1, TEST_SINE,