Adam Ierymenko 4 years ago
parent
commit
d20470d30f
2 changed files with 3 additions and 4 deletions
  1. 3 1
      core/OS.hpp
  2. 0 3
      osdep/MacEthernetTap.cpp

+ 3 - 1
core/OS.hpp

@@ -115,8 +115,10 @@
 #include <mmintrin.h>
 #include <mmintrin.h>
 #endif
 #endif
 
 
-#if (defined(__ARM_NEON) || defined(__ARM_NEON__))
+#if (defined(__ARM_NEON) || defined(__ARM_NEON__) || defined(ZT_ARCH_ARM_HAS_NEON))
+#ifndef ZT_ARCH_ARM_HAS_NEON
 #define ZT_ARCH_ARM_HAS_NEON 1
 #define ZT_ARCH_ARM_HAS_NEON 1
+#endif
 #include <arm_neon.h>
 #include <arm_neon.h>
 /*#include <arm_acle.h>*/
 /*#include <arm_acle.h>*/
 #endif
 #endif

+ 0 - 3
osdep/MacEthernetTap.cpp

@@ -22,9 +22,6 @@
 #include "MacEthernetTap.hpp"
 #include "MacEthernetTap.hpp"
 #include "MacEthernetTapAgent.h"
 #include "MacEthernetTapAgent.h"
 
 
-#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
 #include <string.h>
 #include <errno.h>
 #include <errno.h>