aboutsummaryrefslogtreecommitdiffstats
path: root/src/gmalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmalloc.c')
-rw-r--r--src/gmalloc.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/gmalloc.c b/src/gmalloc.c
index f1be37ba348..6445c56e6d4 100644
--- a/src/gmalloc.c
+++ b/src/gmalloc.c
@@ -122,7 +122,7 @@ extern __ptr_t calloc PP ((__malloc_size_t __nmemb, __malloc_size_t __size));
122extern void free PP ((__ptr_t __ptr)); 122extern void free PP ((__ptr_t __ptr));
123 123
124/* Allocate SIZE bytes allocated to ALIGNMENT bytes. */ 124/* Allocate SIZE bytes allocated to ALIGNMENT bytes. */
125#if ! (defined (_MALLOC_INTERNAL) && __DJGPP__ - 0 == 1) /* Avoid conflict. */ 125#if !defined (_MALLOC_INTERNAL) || defined (MSDOS) /* Avoid conflict. */
126extern __ptr_t memalign PP ((__malloc_size_t __alignment, 126extern __ptr_t memalign PP ((__malloc_size_t __alignment,
127 __malloc_size_t __size)); 127 __malloc_size_t __size));
128extern int posix_memalign PP ((__ptr_t *, __malloc_size_t, 128extern int posix_memalign PP ((__ptr_t *, __malloc_size_t,
@@ -1763,13 +1763,6 @@ Fifth Floor, Boston, MA 02110-1301, USA. */
1763#include <malloc.h> 1763#include <malloc.h>
1764#endif 1764#endif
1765 1765
1766#if __DJGPP__ - 0 == 1
1767
1768/* There is some problem with memalign in DJGPP v1 and we are supposed
1769 to omit it. Noone told me why, they just told me to do it. */
1770
1771#else
1772
1773__ptr_t (*__memalign_hook) PP ((__malloc_size_t __size, 1766__ptr_t (*__memalign_hook) PP ((__malloc_size_t __size,
1774 __malloc_size_t __alignment)); 1767 __malloc_size_t __alignment));
1775 1768
@@ -1878,7 +1871,6 @@ posix_memalign (memptr, alignment, size)
1878 return 0; 1871 return 0;
1879} 1872}
1880 1873
1881#endif /* Not DJGPP v1 */
1882/* Allocate memory on a page boundary. 1874/* Allocate memory on a page boundary.
1883 Copyright (C) 1991, 92, 93, 94, 96 Free Software Foundation, Inc. 1875 Copyright (C) 1991, 92, 93, 94, 96 Free Software Foundation, Inc.
1884 1876