]> pd.if.org Git - liblfds/blob - liblfds/liblfds6.1.1/liblfds611/src/lfds611_abstraction/lfds611_abstraction_malloc.c
Initial import (all versions, including the new 7.1.0)
[liblfds] / liblfds / liblfds6.1.1 / liblfds611 / src / lfds611_abstraction / lfds611_abstraction_malloc.c
1 #include "lfds611_abstraction_internal_wrapper.h"\r
2 \r
3 \r
4 \r
5 \r
6 \r
7 /****************************************************************************/\r
8 #if (!defined WIN_KERNEL_BUILD)\r
9 \r
10   /* TRD : any OS except Windows kernel on any CPU with any compiler\r
11 \r
12            !WIN_KERNEL_BUILD  indicates not Windows kernel\r
13   */\r
14 \r
15   void *lfds611_abstraction_malloc( size_t size )\r
16   {\r
17     return( malloc(size) );\r
18   }\r
19 \r
20 #endif\r
21 \r
22 \r
23 \r
24 \r
25 \r
26 /****************************************************************************/\r
27 #if (defined WIN_KERNEL_BUILD)\r
28 \r
29   /* TRD : any Windows (kernel) on any CPU with the Microsoft C compiler\r
30 \r
31            WIN_KERNEL_BUILD  indicates Windows kernel\r
32   */\r
33 \r
34   void *lfds611_abstraction_malloc( size_t size )\r
35   {\r
36     return( ExAllocatePoolWithTag(NonPagedPool, size, 'sdfl') );\r
37   }\r
38 \r
39 #endif\r
40 \r