diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2009-06-01 16:43:45 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2009-06-01 16:43:45 +0000 |
commit | db8640b0bc2a82c87576ed4b7ae33cdf25620c6d (patch) | |
tree | 183e78e6ce3db265ee935d5794ddfb5c7e04f19f /third_party/g7221/common/config.h | |
parent | eccc9bdf7f99002d501ded2d37c74aa97c09faf9 (diff) |
Ticket #841: Added config to expand G722.1 functions as inline, default value is 1/true (expand as inline).
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2731 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'third_party/g7221/common/config.h')
-rw-r--r-- | third_party/g7221/common/config.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/third_party/g7221/common/config.h b/third_party/g7221/common/config.h new file mode 100644 index 00000000..925a1dae --- /dev/null +++ b/third_party/g7221/common/config.h @@ -0,0 +1,24 @@ +#ifndef __LIBG7221_CONFIG_H__ +#define __LIBG7221_CONFIG_H__ + +#include <pj/config.h> + +/** + * Expand basic operation functions as inline. + * + * Default: 1 (yes) + */ +#ifndef PJMEDIA_LIBG7221_FUNCS_INLINED +# define PJMEDIA_LIBG7221_FUNCS_INLINED 1 +#endif + +/* Declare/define a function that may be expanded as inline. */ +#if PJMEDIA_LIBG7221_FUNCS_INLINED +# define LIBG7221_DECL(type) PJ_INLINE(type) +# define LIBG7221_DEF(type) PJ_INLINE(type) +#else +# define LIBG7221_DECL(type) PJ_DECL(type) +# define LIBG7221_DEF(type) PJ_DEF(type) +#endif + +#endif /* __LIBG7221_CONFIG_H__ */ |