diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-11-13 13:22:13 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-11-13 13:22:13 +0100 |
commit | 01285f20d9f1c51d251bc143dd1c9f2ad026f87b (patch) | |
tree | 77156257ce26f8c2237ef3784d672f8bd0d11049 /speaker-test | |
parent | 1a9b839b2f5c841eb2ac782c0f005e721ad5d363 (diff) | |
download | alsa-utils-01285f20d9f1c51d251bc143dd1c9f2ad026f87b.tar.gz |
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ò <flameeyes@gmail.com>
Diffstat (limited to 'speaker-test')
-rw-r--r-- | speaker-test/speaker-test.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 <getopt.h> #include <inttypes.h> #include <ctype.h> -#ifdef ENABLE_NLS -#include <locale.h> -#endif #include <byteswap.h> #define ALSA_PCM_NEW_HW_PARAMS_API @@ -59,6 +56,10 @@ #include "gettext.h" #include "version.h" +#ifdef ENABLE_NLS +#include <locale.h> +#endif + enum { TEST_PINK_NOISE = 1, TEST_SINE, |