OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains4x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b9bd87
)
* libc/stdlib/mallocr.c: Undefine windows preprocessor variables when compiling
author
cgf
<cgf>
Tue, 30 Jan 2001 04:04:58 +0000
(
04:04
+0000)
committer
cgf
<cgf>
Tue, 30 Jan 2001 04:04:58 +0000
(
04:04
+0000)
under Cygwin.
newlib/ChangeLog
patch
|
blob
|
history
newlib/libc/stdlib/mallocr.c
patch
|
blob
|
history
diff --git
a/newlib/ChangeLog
b/newlib/ChangeLog
index
994eee9
..
3f29bec
100644
(file)
--- a/
newlib/ChangeLog
+++ b/
newlib/ChangeLog
@@
-1,3
+1,8
@@
+Mon Jan 29 23:03:06 2001 Christopher Faylor <cgf@cygnus.com>
+
+ * libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
+ compiling under Cygwin.
+
2001-01-29 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/math.h (signgam): Change to errno-like solution
diff --git
a/newlib/libc/stdlib/mallocr.c
b/newlib/libc/stdlib/mallocr.c
index
c2b2fb9
..
d269dd3
100644
(file)
--- a/
newlib/libc/stdlib/mallocr.c
+++ b/
newlib/libc/stdlib/mallocr.c
@@
-304,6
+304,11
@@
extern "C" {
#define MALLOC_LOCK __malloc_lock(reent_ptr)
#define MALLOC_UNLOCK __malloc_unlock(reent_ptr)
+#ifdef __CYGWIN__
+# undef _WIN32
+# undef WIN32
+#endif
+
#ifndef _WIN32
#ifdef SMALL_MEMORY
#define malloc_getpagesize (128)