- This will save some memory w/ GCC compilers on some platforms

This commit is contained in:
Andi Gutmans 2000-01-29 09:14:22 +00:00
parent 5da185594c
commit b862a8b728

View file

@ -54,8 +54,12 @@ typedef union _align_test {
#define MAX_CACHED_MEMORY 64
#define MAX_CACHED_ENTRIES 16
#if (defined (__GNUC__) && __GNUC__ >= 2)
#define PLATFORM_ALIGNMENT (__alignof__ (zend_mem_header))
#else
#define PLATFORM_ALIGNMENT (sizeof(align_test))
#endif
#define PLATFORM_PADDING (((PLATFORM_ALIGNMENT-sizeof(zend_mem_header))%PLATFORM_ALIGNMENT+PLATFORM_ALIGNMENT)%PLATFORM_ALIGNMENT)
ZEND_API char *zend_strndup(const char *s, unsigned int length);