From 5206cd4c563f31f2a52c4b392ee60f8ad54e4daa Mon Sep 17 00:00:00 2001 From: Neucrack Date: Tue, 29 Jul 2025 00:47:13 +0800 Subject: [PATCH] fix fs compile error --- components/basic/include/maix_fs.hpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/components/basic/include/maix_fs.hpp b/components/basic/include/maix_fs.hpp index 103cacc3..db977796 100644 --- a/components/basic/include/maix_fs.hpp +++ b/components/basic/include/maix_fs.hpp @@ -11,21 +11,17 @@ #include #include -#undef SEEK_SET -#undef SEEK_CUR -#undef SEEK_END - namespace maix::fs { /** * SEEK enums * @maixpy maix.fs.SEEK */ - enum SEEK + enum class SEEK { - SEEK_SET = 0, // Seek from beginning of file. - SEEK_CUR = 1, // Seek from current position. - SEEK_END = 2, // Seek from end of file. + FS_SEEK_SET = 0, // Seek from beginning of file. + FS_SEEK_CUR = 1, // Seek from current position. + FS_SEEK_END = 2, // Seek from end of file. }; /**