Skip to content

Commit 186717f

Browse files
authored
Merge pull request microsoft#502 from c72578/2017-07-13_asyncrt_utils_xlocale
Fix build error with glibc 2.26, xlocale.h
2 parents 97ad067 + d4f707a commit 186717f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Release/include/cpprest/asyncrt_utils.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929

3030
#ifndef _WIN32
3131
#include <boost/algorithm/string.hpp>
32-
#if !defined(ANDROID) && !defined(__ANDROID__) // CodePlex 269
32+
#if !defined(ANDROID) && !defined(__ANDROID__) && !defined(__GLIBC__) // CodePlex 269
33+
/* Systems using glibc: xlocale.h has been removed from glibc 2.26
34+
The above include of locale.h is sufficient
35+
Further details: https://sourceware.org/git/?p=glibc.git;a=commit;h=f0be25b6336db7492e47d2e8e72eb8af53b5506d */
3336
#include <xlocale.h>
3437
#endif
3538
#endif

0 commit comments

Comments
 (0)