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
880e3c78
Verified
Commit
880e3c78
authored
5 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://gitlab.redox-os.org/redox-os/relibc
parents
2e27cf52
77a02941
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/features.h
+28
-0
28 additions, 0 deletions
include/features.h
include/stddef.h
+10
-2
10 additions, 2 deletions
include/stddef.h
with
38 additions
and
2 deletions
include/features.h
0 → 100644
+
28
−
0
View file @
880e3c78
/*
* MIT License
* Copyright (c) 2020 Rich Felker musl-libc
*/
#ifndef _FEATURES_H
#define _FEATURES_H
#if __STDC_VERSION__ >= 199901L
#define __restrict restrict
#elif !defined(__GNUC__)
#define __restrict
#endif
#if __STDC_VERSION__ >= 199901L || defined(__cplusplus)
#define __inline inline
#elif !defined(__GNUC__)
#define __inline
#endif
#if __STDC_VERSION__ >= 201112L
#elif defined(__GNUC__)
#define _Noreturn __attribute__((__noreturn__))
#else
#define _Noreturn
#endif
#endif
This diff is collapsed.
Click to expand it.
include/stddef.h
+
10
−
2
View file @
880e3c78
...
@@ -4,12 +4,20 @@
...
@@ -4,12 +4,20 @@
#define NULL 0
#define NULL 0
typedef
signed
long
long
ptrdiff_t
;
#ifndef __PTRDIFF_TYPE__
#define __PTRDIFF_TYPE__ long int
#endif
typedef
__PTRDIFF_TYPE__
ptrdiff_t
;
#ifndef __cplusplus
typedef
int32_t
wchar_t
;
typedef
int32_t
wchar_t
;
#endif
/* #ifndef __cplusplus */
typedef
int32_t
wint_t
;
typedef
int32_t
wint_t
;
typedef
unsigned
long
long
size_t
;
typedef
long
unsigned
int
size_t
;
typedef
struct
{
long
long
__ll
;
long
double
__ld
;
}
max_align_t
;
#define offsetof(type, member) __builtin_offsetof(type, member)
#define offsetof(type, member) __builtin_offsetof(type, member)
...
...
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