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. }; /**