Skip to content

Commit

Permalink
Fix version check in uchar.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Jan 21, 2012
1 parent 3e1aa84 commit d220b11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2012-01-21 Ulrich Drepper <drepper@gmail.com>

* wcsmbs/uchar.h: Test __STDC_VERSION__.

2012-01-20 Ulrich Drepper <drepper@gmail.com>

* nscd/aicache.c (addhstaiX): Do not cache negative results of
Expand Down
2 changes: 1 addition & 1 deletion wcsmbs/uchar.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ __END_NAMESPACE_C99
/* Define the 16-bit and 32-bit character types. Use the information
provided by the compiler. */
# if !defined __CHAR16_TYPE__ || !defined __CHAR32_TYPE__
# if defined __STDC__ && __STDC__ < 201000L
# if defined __STDC_VERSION__ && __STDC_VERSION__ < 201000L
# error "<uchar.h> requires ISO C11 mode"
# else
# error "definitions of __CHAR16_TYPE__ and/or __CHAR32_TYPE__ missing"
Expand Down

0 comments on commit d220b11

Please sign in to comment.