Prechádzať zdrojové kódy

Hopefully removing problems related to #265

FlorianPalm 9 rokov pred
rodič
commit
e04d29774d
2 zmenil súbory, kde vykonal 1215 pridanie a 1049 odobranie
  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)

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 1207 - 1048
src/ua_types_encoding_binary.c