Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2006-09-22 23:33:11 +0400
committerJeff Johnston <jjohnstn@redhat.com>2006-09-22 23:33:11 +0400
commite83c3d0ae5dec854ef6e69d5268cd9a1b7745fd8 (patch)
tree9fb9a280346a4b7619bee2706eda9e1aec18a9ae /newlib
parent70f1ec33cbc838edf6ad1f3f869be7c1728b013f (diff)
2006-09-22 Paul Brook <paul@codesourcery.com>
* libc/include/sys/reent.h: Define and use __reent_assert.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/include/sys/reent.h5
2 files changed, 7 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 0f882ffa2..e5ab0fd04 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2006-09-22 Paul Brook <paul@codesourcery.com>
+
+ * libc/include/sys/reent.h: Define and use __reent_assert.
+
2006-09-13 Joel Sherrill <joel@oarcorp.com>
* libc/include/pthread.h: Add pthread barriers,
diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h
index 7911b6cbc..3ef605828 100644
--- a/newlib/libc/include/sys/reent.h
+++ b/newlib/libc/include/sys/reent.h
@@ -459,8 +459,9 @@ struct _reent
/* Only built the assert() calls if we are built with debugging. */
#if DEBUG
#include <assert.h>
+#define __reent_assert(x) assert(x)
#else
-#define assert(x) ((void)0)
+#define __reent_assert(x) ((void)0)
#endif
/* Generic _REENT check macro. */
@@ -468,7 +469,7 @@ struct _reent
struct _reent *_r = (var); \
if (_r->what == NULL) { \
_r->what = (type)malloc(size); \
- assert(_r->what); \
+ __reent_assert(_r->what); \
init; \
} \
} while (0)