Browse Source

C99 says that both <wchar.h> and <stdint.h> should define WCHAR_MIN/MAX.

ok beck@, guenther@, millert@, miod@
OPENBSD_5_1
kettenis 12 years ago
parent
commit
512ab376b6
1 changed files with 9 additions and 2 deletions
  1. +9
    -2
      src/include/wchar.h

+ 9
- 2
src/include/wchar.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: wchar.h,v 1.21 2011/10/16 13:22:06 stsp Exp $ */
/* $OpenBSD: wchar.h,v 1.22 2012/01/05 20:37:50 kettenis Exp $ */
/* $NetBSD: wchar.h,v 1.16 2003/03/07 07:11:35 tshiozak Exp $ */
/*-
@ -94,10 +94,17 @@ typedef __wint_t wint_t;
typedef __size_t size_t;
#endif
#ifndef WEOF
#ifndef WEOF
#define WEOF ((wint_t)-1)
#endif
#ifndef WCHAR_MIN
#define WCHAR_MIN (-0x7fffffff - 1)
#endif
#ifndef WCHAR_MAX
#define WCHAR_MAX 0x7fffffff
#endif
__BEGIN_DECLS
wint_t btowc(int);
size_t mbrlen(const char * __restrict, size_t, mbstate_t * __restrict);


Loading…
Cancel
Save