Different semantics for inline functions
While -std=gnu89 employs the GNU89 inline semantics, -std=gnu11 uses the
C99 inline semantics.
For further informaion, please refer to
'https://gcc.gnu.org/gcc-5/porting_to.html'
Remove unused function.
Signed-off-by: SeokHoon Lee <andy.shlee@samsung.com>
Change-Id: I8e7d567f35e3c82d7437619e7a4dab869a9ec3bb
Name: libmm-streamrecorder
Summary: Media Stream Recorder library
Name: libmm-streamrecorder
Summary: Media Stream Recorder library
Release: 0
Group: Multimedia/Other
License: Apache-2.0
Release: 0
Group: Multimedia/Other
License: Apache-2.0
guint16 get_language_code(const char *str);
gchar *str_to_utf8(const gchar *str);
guint16 get_language_code(const char *str);
gchar *str_to_utf8(const gchar *str);
-inline gboolean write_tag(FILE *f, const gchar *tag);
-inline gboolean write_to_32(FILE *f, guint val);
-inline gboolean write_to_16(FILE *f, guint val);
-inline gboolean write_to_24(FILE *f, guint val);
+__attribute__ ((gnu_inline)) inline gboolean write_tag(FILE *f, const gchar *tag);
+__attribute__ ((gnu_inline)) inline gboolean write_to_32(FILE *f, guint val);
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif
return g_convert(str, -1, "UTF-8", "ASCII", NULL, NULL, NULL);
}
return g_convert(str, -1, "UTF-8", "ASCII", NULL, NULL, NULL);
}
-inline gboolean write_tag(FILE *f, const gchar *tag)
+__attribute__ ((gnu_inline)) inline gboolean write_tag(FILE *f, const gchar *tag)
{
while (*tag)
FPUTC_CHECK(*tag++, f);
{
while (*tag)
FPUTC_CHECK(*tag++, f);
-inline gboolean write_to_32(FILE *f, guint val)
+__attribute__ ((gnu_inline)) inline gboolean write_to_32(FILE *f, guint val)
{
FPUTC_CHECK(val >> 24, f);
FPUTC_CHECK(val >> 16, f);
{
FPUTC_CHECK(val >> 24, f);
FPUTC_CHECK(val >> 16, f);
FPUTC_CHECK(val, f);
return TRUE;
}
FPUTC_CHECK(val, f);
return TRUE;
}
-
-inline gboolean write_to_16(FILE *f, guint val)
-{
- FPUTC_CHECK(val >> 8, f);
- FPUTC_CHECK(val, f);
- return TRUE;
-}
-
-inline gboolean write_to_24(FILE *f, guint val)
-{
- write_to_16(f, val >> 8);
- FPUTC_CHECK(val, f);
- return TRUE;
-}