Adam Ierymenko 4 年之前
父節點
當前提交
d20470d30f
共有 2 個文件被更改,包括 3 次插入4 次删除
  1. 3 1
      core/OS.hpp
  2. 0 3
      osdep/MacEthernetTap.cpp

+ 3 - 1
core/OS.hpp

@@ -115,8 +115,10 @@
 #include <mmintrin.h>
 #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
+#endif
 #include <arm_neon.h>
 /*#include <arm_acle.h>*/
 #endif

+ 0 - 3
osdep/MacEthernetTap.cpp

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