Codebase list libcryptx-perl / cd951ee
small changes from libtomcrypt repo Karel Miko 7 years ago
1 changed file(s) with 9 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
33 /* macros for various libc functions you can change for embedded targets */
44 #ifndef XMALLOC
55 #ifdef malloc
6 /* #define LTC_NO_PROTOTYPES */
6 #define LTC_NO_PROTOTYPES
77 #endif
88 #define XMALLOC malloc
99 #endif
1010 #ifndef XREALLOC
1111 #ifdef realloc
12 /* #define LTC_NO_PROTOTYPES */
12 #define LTC_NO_PROTOTYPES
1313 #endif
1414 #define XREALLOC realloc
1515 #endif
1616 #ifndef XCALLOC
1717 #ifdef calloc
18 /* #define LTC_NO_PROTOTYPES */
18 #define LTC_NO_PROTOTYPES
1919 #endif
2020 #define XCALLOC calloc
2121 #endif
2222 #ifndef XFREE
2323 #ifdef free
24 /* #define LTC_NO_PROTOTYPES */
24 #define LTC_NO_PROTOTYPES
2525 #endif
2626 #define XFREE free
2727 #endif
2828
2929 #ifndef XMEMSET
3030 #ifdef memset
31 /* #define LTC_NO_PROTOTYPES */
31 #define LTC_NO_PROTOTYPES
3232 #endif
3333 #define XMEMSET memset
3434 #endif
3535 #ifndef XMEMCPY
3636 #ifdef memcpy
37 /* #define LTC_NO_PROTOTYPES */
37 #define LTC_NO_PROTOTYPES
3838 #endif
3939 #define XMEMCPY memcpy
4040 #endif
4141 #ifndef XMEMCMP
4242 #ifdef memcmp
43 /* #define LTC_NO_PROTOTYPES */
43 #define LTC_NO_PROTOTYPES
4444 #endif
4545 #define XMEMCMP memcmp
4646 #endif
4949 #endif
5050 #ifndef XSTRCMP
5151 #ifdef strcmp
52 /* #define LTC_NO_PROTOTYPES */
52 #define LTC_NO_PROTOTYPES
5353 #endif
5454 #define XSTRCMP strcmp
5555 #endif
6363
6464 #ifndef XQSORT
6565 #ifdef qsort
66 /* #define LTC_NO_PROTOTYPES */
66 #define LTC_NO_PROTOTYPES
6767 #endif
6868 #define XQSORT qsort
6969 #endif