Parcourir la source

Hopefully removing problems related to #265

FlorianPalm il y a 9 ans
Parent
commit
e04d29774d
2 fichiers modifiés avec 1215 ajouts et 1049 suppressions
  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)

Fichier diff supprimé car celui-ci est trop grand
+ 1207 - 1048
src/ua_types_encoding_binary.c