#include "lfds600_abstraction_internal.h" /****************************************************************************/ #if (defined _WIN32 && defined _MSC_VER && !defined WIN_KERNEL_BUILD) /* TRD : any Windows (user-mode) on any CPU with the Microsoft C compiler _WIN32 indicates 64-bit or 32-bit Windows _MSC_VER indicates Microsoft C compiler !WIN_KERNEL_BUILD indicates Windows user-mode */ void lfds600_abstraction_aligned_free( void *memory ) { _aligned_free( memory ); return; } #endif /****************************************************************************/ #if (_XOPEN_SOURCE >= 600) /* TRD : any OS on any CPU with any compiler with POSIX 6.00 or better _XOPEN_SOURCE is actually set by the user, not by the compiler it is the way the user signals to the compiler what level of POSIX should be available (it assumes of course the compiler has support for the given level of POSIX requested) */ void lfds600_abstraction_aligned_free( void *memory ) { free( memory ); return; } #endif /****************************************************************************/ #if (defined _WIN32 && defined _MSC_VER && defined WIN_KERNEL_BUILD) /* TRD : any Windows (kernel) on any CPU with the Microsoft C compiler _WIN32 indicates 64-bit or 32-bit Windows _MSC_VER indicates Microsoft C compiler WIN_KERNEL_BUILD indicates Windows kernel */ void lfds600_abstraction_aligned_free( void *memory ) { ExFreePoolWithTag( memory, 'sdfl' ); return; } #endif