From: Alexander Wenzel Date: Wed, 24 Jul 2013 12:16:42 +0000 (+0200) Subject: Bug 85 - Include of dlt.h leads to compiler warning. X-Git-Tag: v2.9.1~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=679529ce739a1d729f8c3515820fe9be98d68154;p=profile%2Fivi%2Fdlt-daemon.git Bug 85 - Include of dlt.h leads to compiler warning. Signed-off-by: Alexander Wenzel --- diff --git a/include/dlt/dlt_common.h b/include/dlt/dlt_common.h index 5af6332..4fb9cff 100755 --- a/include/dlt/dlt_common.h +++ b/include/dlt/dlt_common.h @@ -104,6 +104,7 @@ #define DLT_SWAP_32(value) ((((value) >> 24)&0xff) | (((value) << 8)&0xff0000) | (((value) >> 8)&0xff00) | (((value) << 24)&0xff000000)) /* Set Big Endian and Little Endian to a initial value, if not defined */ +#if !defined __USE_BSD #ifndef LITTLE_ENDIAN #define LITTLE_ENDIAN 1234 #endif @@ -111,11 +112,14 @@ #ifndef BIG_ENDIAN #define BIG_ENDIAN 4321 #endif +#endif /* __USE_BSD */ /* If byte order is not defined, default to little endian */ +#if !defined __USE_BSD #ifndef BYTE_ORDER #define BYTE_ORDER LITTLE_ENDIAN #endif +#endif /* __USE_BSD */ /* Check for byte-order */ #if (BYTE_ORDER==BIG_ENDIAN)