mirror of
https://github.com/elua/elua.git
synced 2025-01-25 01:02:54 +08:00
conditional compilation
This commit is contained in:
parent
2d0652c808
commit
a5529cbed4
12
src/fs.c
12
src/fs.c
@ -7,6 +7,9 @@
|
|||||||
#include "luatest.h"
|
#include "luatest.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include "build.h"
|
||||||
|
#ifdef BUILD_ROMFS
|
||||||
|
|
||||||
#define ROMFS_MAX_FDS 4
|
#define ROMFS_MAX_FDS 4
|
||||||
#define fsmin( x , y ) ( ( x ) < ( y ) ? ( x ) : ( y ) )
|
#define fsmin( x , y ) ( ( x ) < ( y ) ? ( x ) : ( y ) )
|
||||||
|
|
||||||
@ -135,3 +138,12 @@ DM_DEVICE* fs_init()
|
|||||||
{
|
{
|
||||||
return &romfs_device;
|
return &romfs_device;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else // #ifdef BUILD_ROMFS
|
||||||
|
|
||||||
|
DM_DEVICE* fs_init()
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // #ifdef BUILD_ROMFS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user