Explorar o código

【添加】ffi 模块对非 gcc 工具链的提示

SummerGift %!s(int64=6) %!d(string=hai) anos
pai
achega
654295c13b
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      port/modffi.c

+ 5 - 0
port/modffi.c

@@ -36,6 +36,11 @@
 #include "py/mperrno.h"
 #include "py/mperrno.h"
 
 
 #ifdef MICROPYTHON_USING_FFI
 #ifdef MICROPYTHON_USING_FFI
+
+#if !defined(__GNUC__) 
+#error "The ffi module only supports GCC toolchain at present"
+#endif
+
 #include <dlfcn.h>
 #include <dlfcn.h>
 #include <dlmodule.h>
 #include <dlmodule.h>