* src/gmalloc.c [CYGWIN]: Rename memalign (Bug#15094).

This commit is contained in:
Ken Brown 2013-08-14 15:09:51 -04:00
parent 5b71542de3
commit 05e64f9f63
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2013-08-14 Ken Brown <kbrown@cornell.edu>
* gmalloc.c (memalign) [CYGWIN]: Rename to emacs_memalign
(Bug#15094).
2013-08-14 Dmitry Antipov <dmantipov@yandex.ru>
Utility function and macro to copy Lisp string to C string.

View file

@ -1558,6 +1558,15 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>. *
void *(*__memalign_hook) (size_t size, size_t alignment);
/* As of version 1.7.24, Cygwin allows applications to provide their
own posix_memalign (but not memalign). But posix_memalign as
defined in this file calls memalign, so we have to rename the
latter in order to make sure that posix_memalign calls Emacs's
memalign. */
#ifdef CYGWIN
#define memalign emacs_memalign
#endif
void *
memalign (size_t alignment, size_t size)
{