From http://www.jwz.org/xscreensaver/xscreensaver-5.37.tar.gz
[xscreensaver] / utils / aligned_malloc.h
index 819a46cd0af92090a9c5d1726a3ee705a101bd20..b3f43c9c451ddf061290481c1a83eb67c4901e91 100644 (file)
@@ -18,22 +18,9 @@ implied warranty.
 
 #include <stdlib.h>
 
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#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__ */