summaryrefslogtreecommitdiff
path: root/include/dlt/dlt_common.h
diff options
context:
space:
mode:
authorAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2013-07-24 14:16:42 +0200
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2013-07-25 13:09:16 +0200
commit679529ce739a1d729f8c3515820fe9be98d68154 (patch)
tree6c7242423f4f451306aa0d083103069f77f4d925 /include/dlt/dlt_common.h
parent244c56f9ba0c412b20d2bd9590ae6d07a799cbc9 (diff)
downloadDLT-daemon-679529ce739a1d729f8c3515820fe9be98d68154.tar.gz
Bug 85 - Include of dlt.h leads to compiler warning.
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'include/dlt/dlt_common.h')
-rwxr-xr-xinclude/dlt/dlt_common.h4
1 files changed, 4 insertions, 0 deletions
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)