From 193e7df5fe24668ce2f69e2a1121c04ba9835ce7 Mon Sep 17 00:00:00 2001 From: cuz Date: Sun, 24 Jul 2005 13:01:14 +0000 Subject: [PATCH] Hide posix_memalign if strict ANSI is enabled git-svn-id: svn://svn.cc65.org/cc65/trunk@3538 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/stdlib.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/stdlib.h b/include/stdlib.h index 6bacd952b..59b339dd5 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -62,6 +62,7 @@ void __fastcall__ free (void* block); /* Non standard memory management functions */ +#if __CC65_STD__ == __CC65_STD_CC65__ int __fastcall__ posix_memalign (void** memptr, size_t alignment, size_t size); /* Allocate a block of memory with the given "size", which is aligned to a * memory address that is a multiple of "alignment". "alignment" MUST NOT be @@ -71,6 +72,7 @@ int __fastcall__ posix_memalign (void** memptr, size_t alignment, size_t size); * will return the address of the allocated memory. Use free() to release that * allocated block. */ +#endif void __fastcall__ _heapadd (void* mem, size_t size); /* Add a block to the heap */ -- 2.39.5