Fix mbstate_t support on GLIBC 2.16/2.17 #5

Merged
merged 1 commit into from Dec 28, 2012

Projects

None yet

2 participants

@tob2

GLIBC < 2.16 requires __mbstate_t_defined while GLIBC 2.16 requires
____mbstate_t_defined. Also setting the former in 2.16 leads to failures,
e.g. for "#include . The change was required due to the GLIBC patch
http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=db6af3ebf46a83b885455dc03a3c2c1c2c2dedec

  • include/rw/mbstate.h (mbstate_t): Include features and use __GLIBC_ and GLIBC_MINOR for defingin ____mbstate_t_defined vs. __mbstate_t_defined.
@tob2 tob2 Fix mbstate_t for GLIBC 2.16
GLIBC < 2.16 requires __mbstate_t_defined while GLIBC 2.16 requires
____mbstate_t_defined. Also setting the former in 2.16 leads to failures,
e.g. for "#include <iostream>. The change was required due to the GLIBC patch
http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=db6af3ebf46a83b885455dc03a3c2c1c2c2dedec

* include/rw/_mbstate.h (mbstate_t): Include features and use __GLIBC__
  and __GLIBC_MINOR__ for defingin ____mbstate_t_defined vs. __mbstate_t_defined.
18dd5d7
@cbergstrom cbergstrom merged commit dd9bd6b into pathscale:master Dec 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment