mirror of
https://github.com/sipeed/MaixCDK.git
synced 2026-09-19 14:30:55 -05:00
fix fs compile error
This commit is contained in:
@@ -11,21 +11,17 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#undef SEEK_SET
|
|
||||||
#undef SEEK_CUR
|
|
||||||
#undef SEEK_END
|
|
||||||
|
|
||||||
namespace maix::fs
|
namespace maix::fs
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* SEEK enums
|
* SEEK enums
|
||||||
* @maixpy maix.fs.SEEK
|
* @maixpy maix.fs.SEEK
|
||||||
*/
|
*/
|
||||||
enum SEEK
|
enum class SEEK
|
||||||
{
|
{
|
||||||
SEEK_SET = 0, // Seek from beginning of file.
|
FS_SEEK_SET = 0, // Seek from beginning of file.
|
||||||
SEEK_CUR = 1, // Seek from current position.
|
FS_SEEK_CUR = 1, // Seek from current position.
|
||||||
SEEK_END = 2, // Seek from end of file.
|
FS_SEEK_END = 2, // Seek from end of file.
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user