mirror of
https://git.freebsd.org/ports.git
synced 2025-05-15 00:31:51 -04:00
22 lines
565 B
C
22 lines
565 B
C
--- lib/assert.h.orig 2017-09-02 01:09:05 UTC
|
|
+++ lib/assert.h
|
|
@@ -43,6 +43,10 @@
|
|
#ifndef INCLUDED_ASSERT_H
|
|
#define INCLUDED_ASSERT_H
|
|
|
|
+#ifdef __cplusplus
|
|
+extern "C" {
|
|
+#endif
|
|
+
|
|
#ifdef __STDC__
|
|
#define assert(ex) {if (!(ex))assertionfailed(__FILE__, __LINE__, #ex);}
|
|
void assertionfailed(const char *file, int line, const char *expr);
|
|
@@ -50,4 +54,8 @@ void assertionfailed(const char *file, i
|
|
#define assert(ex) {if (!(ex))assertionfailed(__FILE__, __LINE__, (char*)0);}
|
|
#endif
|
|
|
|
+#ifdef __cplusplus
|
|
+}
|
|
+#endif
|
|
+
|
|
#endif /* INCLUDED_ASSERT_H */
|