Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Limkilde Svendsen
relibc
Commits
e2fd33db
Verified
Commit
e2fd33db
authored
1 year ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Ensure wchar_t and wint_t definitions can coexist with GCC stddef.h
parent
51c93c4b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/bits/wchar.h
+20
-7
20 additions, 7 deletions
include/bits/wchar.h
with
20 additions
and
7 deletions
include/bits/wchar.h
+
20
−
7
View file @
e2fd33db
#ifndef _BITS_WCHAR_H
#define _BITS_WCHAR_H
// NULL, size_t
// int32_t, uint32_t, WCHAR_MIN, WCHAR_MAX
#include
<stdint.h>
#ifndef _WCHAR_T
#define _WCHAR_T
#ifndef __WCHAR_TYPE__
#define __WCHAR_TYPE__ int32_t
#endif
typedef
__WCHAR_TYPE__
wchar_t
;
#endif // _WCHAR_T
#ifndef _WINT_T
#define _WINT_T
#ifndef __WINT_TYPE__
#define __WINT_TYPE__ uint32_t
#endif
typedef
__WINT_TYPE__
wint_t
;
#endif // _WINT_T
// NULL, size_t, must come after wchar_t and wint_t
#define __need_size_t
#define __need_NULL
#include
<stddef.h>
// int32_t, uint32_t, WCHAR_MIN, WCHAR_MAX
#include
<stdint.h>
#define WEOF (0xffffffffu)
typedef
int32_t
wchar_t
;
typedef
uint32_t
wint_t
;
int
wprintf
(
const
wchar_t
*
fmt
,
...);
int
fwprintf
(
FILE
*
stream
,
const
wchar_t
*
fmt
,
...);
int
swprintf
(
wchar_t
*
s
,
size_t
n
,
const
wchar_t
*
fmt
,
...);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment