diff options
author | Joel Bodenmann <joel@seriouslyembedded.com> | 2016-02-21 13:32:32 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@seriouslyembedded.com> | 2016-02-21 13:32:32 +0100 |
commit | 3d78787b07ce9c2dafe0869dfd54b734181b7dd6 (patch) | |
tree | 852ca628ce000a8bf5cf6c1972d70662ca6b5b11 /src/gos | |
parent | 3a840480edda367902cc71416e37f6eb92bce438 (diff) | |
download | uGFX-3d78787b07ce9c2dafe0869dfd54b734181b7dd6.tar.gz uGFX-3d78787b07ce9c2dafe0869dfd54b734181b7dd6.tar.bz2 uGFX-3d78787b07ce9c2dafe0869dfd54b734181b7dd6.zip |
Adding missing default definitions of several macros
Diffstat (limited to 'src/gos')
-rw-r--r-- | src/gos/gos_options.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gos/gos_options.h b/src/gos/gos_options.h index 0c6fd7a7..5c051fea 100644 --- a/src/gos/gos_options.h +++ b/src/gos/gos_options.h @@ -195,6 +195,18 @@ #ifndef GFX_OS_HEAP_SIZE #define GFX_OS_HEAP_SIZE 0 #endif + /** + * @brief Enable wrappers for malloc() and free() + * @details Defaults to FALSE + * @note If enabled, malloc() and free() will be implemented as wrappers that call gfxAlloc() and + * gfxFree() in order to provide portability to libraries using these function. + * @note Enabling this can solve 'unresolved _sbrk' issues + * @note It is strongly recommended to always use gfxAlloc() and gfxFree() directy to ensure + * portability of uGFX applications across all platforms. + */ + #ifndef GFX_EMULATE_MALLOC + #define GFX_EMULATE_MALLOC FALSE + #endif /** @} */ #endif /* _GOS_OPTIONS_H */ |