X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=utils%2Faligned_malloc.h;h=b3f43c9c451ddf061290481c1a83eb67c4901e91;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hp=819a46cd0af92090a9c5d1726a3ee705a101bd20;hpb=8afc01a67be4fbf3f1cc0fce9adf01b5289a21c6;p=xscreensaver diff --git a/utils/aligned_malloc.h b/utils/aligned_malloc.h index 819a46cd..b3f43c9c 100644 --- a/utils/aligned_malloc.h +++ b/utils/aligned_malloc.h @@ -18,22 +18,9 @@ implied warranty. #include -#if HAVE_UNISTD_H -# include -#endif - -#if _POSIX_VERSION >= 200112L || _XOPEN_VERSION >= 600 - -# define aligned_malloc posix_memalign -# define aligned_free free - -#else /* old POSIX */ - /* This can't simply be named posix_memalign, since the real thing uses free(), but this one can't. */ int aligned_malloc(void **ptr, unsigned alignment, size_t size); void aligned_free(void *); -#endif /* old POSIX */ - #endif /* __ALIGNED_MALLOC_H__ */