X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-vasnprintf-posix3.c;h=a5107e1f22bb755de480a98c5e0cc94e77275ed0;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=e0237fa60f234769322ae2fc893b5f93fdb326a8;hpb=f03d479e8f5f234789cde2fd841d16fd4eeda247;p=gnulib.git diff --git a/tests/test-vasnprintf-posix3.c b/tests/test-vasnprintf-posix3.c index e0237fa60..a5107e1f2 100644 --- a/tests/test-vasnprintf-posix3.c +++ b/tests/test-vasnprintf-posix3.c @@ -1,5 +1,5 @@ /* Test of POSIX compatible vasnprintf() and asnprintf() functions. - Copyright (C) 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2014 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -32,7 +32,7 @@ test_function (char * (*my_asnprintf) (char *, size_t *, const char *, ...)) /* glibc >= 2.2 supports the 'I' flag, and in glibc >= 2.2.3 the fa_IR locale defines the 'outdigits' to be U+06F0..U+06F9. So we test for glibc >= 2.3. */ -#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3) +#if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__ /* Test that the 'I' flag is supported. */ { size_t length; @@ -75,7 +75,7 @@ test_asnprintf () int main (int argc, char *argv[]) { -#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3) +#if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__ /* Select a locale with Arabic 'outdigits'. */ if (setlocale (LC_ALL, "fa_IR.UTF-8") == NULL) {