Fix abort definition for C++
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user