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
334e33cf
Verified
Commit
334e33cf
authored
2 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Fix abort definition for C++
parent
2b3e9a3b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/bits/stdlib.h
+4
-4
4 additions, 4 deletions
include/bits/stdlib.h
src/c/stdlib.c
+1
-1
1 addition, 1 deletion
src/c/stdlib.c
with
5 additions
and
5 deletions
include/bits/stdlib.h
+
4
−
4
View file @
334e33cf
#ifndef _BITS_STDLIB_H
#define _BITS_STDLIB_H
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef __cplusplus
// C++ needs abort to be a function, define backup function
void
abort
(
void
);
...
...
@@ -9,10 +13,6 @@ void abort(void);
#define abort() __abort(__func__, __FILE__, __LINE__)
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
long
double
strtold
(
const
char
*
nptr
,
char
**
endptr
);
#ifdef __cplusplus
...
...
This diff is collapsed.
Click to expand it.
src/c/stdlib.c
+
1
−
1
View file @
334e33cf
...
...
@@ -8,7 +8,7 @@ long double strtold(const char *nptr, char **endptr) {
void
__abort
(
const
char
*
func
,
const
char
*
file
,
int
line
);
// backup definition of abort for programs that link it directly
void
abort
()
{
void
abort
(
void
)
{
// call detailed abort function
__abort
(
__func__
,
__FILE__
,
__LINE__
);
}
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