blob: 4faec787d79753bddee3567150bd1663ec6df8a5 [file] [log] [blame]
Nanang Izzuddin97925732009-06-01 16:43:45 +00001#ifndef __LIBG7221_CONFIG_H__
2#define __LIBG7221_CONFIG_H__
3
4#include <pj/config.h>
5
6/**
Benny Prijono2c91aa22009-10-11 04:55:34 +00007 * Expand all basic operation functions as inline. Even if this is set to
8 * zero, some critical functions would still be expanded as inline. Note
9 * also that enabling this may generate some warning messages about functions
10 * not being referenced (with gcc).
Nanang Izzuddin97925732009-06-01 16:43:45 +000011 *
Benny Prijono2c91aa22009-10-11 04:55:34 +000012 * Default: 0 (no)
Nanang Izzuddin97925732009-06-01 16:43:45 +000013 */
14#ifndef PJMEDIA_LIBG7221_FUNCS_INLINED
Benny Prijono2c91aa22009-10-11 04:55:34 +000015# define PJMEDIA_LIBG7221_FUNCS_INLINED 0
Nanang Izzuddin97925732009-06-01 16:43:45 +000016#endif
17
18/* Declare/define a function that may be expanded as inline. */
19#if PJMEDIA_LIBG7221_FUNCS_INLINED
20# define LIBG7221_DECL(type) PJ_INLINE(type)
21# define LIBG7221_DEF(type) PJ_INLINE(type)
22#else
23# define LIBG7221_DECL(type) PJ_DECL(type)
24# define LIBG7221_DEF(type) PJ_DEF(type)
25#endif
26
27#endif /* __LIBG7221_CONFIG_H__ */