Commit b076a285 by Richard Stallman

*** empty log message ***

From-SVN: r1183
parent 6196c528
...@@ -18,10 +18,16 @@ ...@@ -18,10 +18,16 @@
#else #else
#ifdef __STDC__ #if defined(__STDC__) || defined (__cplusplus)
/* Defined in libgcc.a */ /* Defined in libgcc.a */
#ifdef __cplusplus
extern "C" {
extern void __eprintf (const char *, const char *, int, const char *); extern void __eprintf (const char *, const char *, int, const char *);
}
#else
extern void __eprintf (const char *, const char *, int, const char *);
#endif
#define assert(expression) \ #define assert(expression) \
((void) ((expression) ? 0 : __assert (#expression, __FILE__, __LINE__))) ((void) ((expression) ? 0 : __assert (#expression, __FILE__, __LINE__)))
...@@ -30,7 +36,7 @@ extern void __eprintf (const char *, const char *, int, const char *); ...@@ -30,7 +36,7 @@ extern void __eprintf (const char *, const char *, int, const char *);
(__eprintf ("%s:%u: failed assertion `%s'\n", \ (__eprintf ("%s:%u: failed assertion `%s'\n", \
file, line, expression), 0) file, line, expression), 0)
#else /* no __STDC__; i.e. -traditional. */ #else /* no __STDC__ and not C++; i.e. -traditional. */
extern void __eprintf (); /* Defined in libgcc.a */ extern void __eprintf (); /* Defined in libgcc.a */
...@@ -41,6 +47,6 @@ extern void __eprintf (); /* Defined in libgcc.a */ ...@@ -41,6 +47,6 @@ extern void __eprintf (); /* Defined in libgcc.a */
(__eprintf ("%s:%u: failed assertion `%s'\n", \ (__eprintf ("%s:%u: failed assertion `%s'\n", \
file, lineno, "expression"), 0) file, lineno, "expression"), 0)
#endif /* no __STDC__; i.e. -traditional. */ #endif /* no __STDC__ and not C++; i.e. -traditional. */
#endif /* no __GNU__; i.e., /bin/cc. */ #endif /* no __GNU__; i.e., /bin/cc. */
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment