Browse Source

Don't redefine D_INO if already defined (#3036)

Maks Litskevich 2 năm trước cách đây
mục cha
commit
7b6d0a5d45
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      core/shared/platform/common/posix/posix_file.c

+ 2 - 0
core/shared/platform/common/posix/posix_file.c

@@ -25,12 +25,14 @@
  * For NuttX, CONFIG_HAS_ISATTY is provided by its platform header.
  * (platform_internal.h)
  */
+#if !defined(CONFIG_HAS_D_INO)
 #if !defined(__NuttX__)
 #define CONFIG_HAS_D_INO 1
 #define CONFIG_HAS_ISATTY 1
 #else
 #define CONFIG_HAS_D_INO 0
 #endif
+#endif
 
 #if !defined(__APPLE__) && !defined(ESP_PLATFORM) && !defined(__COSMOPOLITAN__)
 #define CONFIG_HAS_POSIX_FALLOCATE 1