瀏覽代碼

Hopefully removing problems related to #265

FlorianPalm 9 年之前
父節點
當前提交
e04d29774d
共有 2 個文件被更改,包括 1215 次插入1049 次删除
  1. 8 1
      include/ua_config.h.in
  2. 1207 1048
      src/ua_types_encoding_binary.c

+ 8 - 1
include/ua_config.h.in

@@ -28,7 +28,14 @@
 #    define UA_EXPORT
 #  endif
 #endif
-
+#ifdef __arm__
+  #infdef __ARM_FEATURE_UNALIGNED
+    #define UA_ALIGNED_MEMORY_ACCESS
+  #endif /* __ARM_FEATURE_UNALIGNED */
+  #ifdef __ARM_ARCH_4T__
+    #define UA_MIXED_ENDIAN
+  #endif /*__ARM_ARCH_4T__ */
+#endif /*  __arm__ */
 /*	Define your own htoleXX and leXXtoh here if needed.
 	Otherwise the ones defined in endian.h are used		*/
 //	#define htole16(x)	{...}(x)

File diff suppressed because it is too large
+ 1207 - 1048
src/ua_types_encoding_binary.c