Azure IoT common library
Dependents: STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more
Diff: gballoc.c
- Revision:
- 45:1119d0f2c4d8
- Parent:
- 38:ed9c888e5e12
- Child:
- 48:81866008bba4
--- a/gballoc.c Fri May 04 13:26:26 2018 -0700 +++ b/gballoc.c Mon Jun 11 15:41:10 2018 -0700 @@ -1,6 +1,7 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. + #include <stdlib.h> #include <stdint.h> #include <stddef.h> @@ -8,6 +9,8 @@ #include "azure_c_shared_utility/optimize_size.h" #include "azure_c_shared_utility/xlogging.h" +#ifndef GB_USE_CUSTOM_HEAP + #ifndef SIZE_MAX #define SIZE_MAX ((size_t)~(size_t)0) #endif @@ -439,3 +442,5 @@ (void)Unlock(gballocThreadSafeLock); } } + +#endif // GB_USE_CUSTOM_HEAP