mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-13 13:28:34 +00:00
core: Remove ABI effects of LOW_MEMORY.
This allows asterisk to compiled with LOW_MEMORY to load modules built without LOW_MEMORY. ASTERISK-26398 #close Change-Id: I24b78ac9493ab933b11087a8b6794f3c96d4872d
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
copies of the function body are not built in different modules.
|
||||
However, since this doesn't work for clang, we go with 'static'
|
||||
anyway and hope for the best!
|
||||
- when LOW_MEMORY is defined, inlining should be disabled
|
||||
- when DISABLE_INLINE is defined, inlining should be disabled
|
||||
completely, even if the compiler is configured to support it
|
||||
|
||||
The AST_INLINE_API macro allows this to happen automatically, when
|
||||
@@ -45,7 +45,7 @@
|
||||
including the header file
|
||||
*/
|
||||
|
||||
#if !defined(LOW_MEMORY) && !defined(DISABLE_INLINE)
|
||||
#if !defined(DISABLE_INLINE)
|
||||
|
||||
#if !defined(AST_API_MODULE)
|
||||
#if defined(__clang__) || defined(__GNUC_STDC_INLINE__)
|
||||
@@ -57,7 +57,7 @@
|
||||
#define AST_INLINE_API(hdr, body) hdr; hdr body
|
||||
#endif
|
||||
|
||||
#else /* defined(LOW_MEMORY) */
|
||||
#else /* defined(DISABLE_INLINE) */
|
||||
|
||||
#if !defined(AST_API_MODULE)
|
||||
#define AST_INLINE_API(hdr, body) hdr;
|
||||
|
||||
Reference in New Issue
Block a user