[IIO] Change functions used for byte order conversion
authorWook Song <wook16.song@samsung.com>
Fri, 29 Mar 2019 00:08:30 +0000 (09:08 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 29 Mar 2019 04:12:54 +0000 (13:12 +0900)
commit4e6c35366586487a18a591812b0a9fb31858ca1e
tree57ffe4b7e11f892e2103035f491bed7e407815f5
parent166df93541f786e94d21d7eba84711c54ecf575f
[IIO] Change functions used for byte order conversion

Without defining _BSD_SOURCE and __USE_BSD macros, the functions such as
be16toh, le16toh, be32toh, le32toh, be64toh and le64toh are not
compatible with c89. In order to fix this issue, this patch replaces
such functions with byte order macros from glib-2.0.

Signed-off-by: Wook Song <wook16.song@samsung.com>
gst/nnstreamer/tensor_source/tensor_src_iio.c