1
0
mirror of https://github.com/elua/elua.git synced 2025-01-08 20:56:17 +08:00

conditional compilation

This commit is contained in:
Bogdan Marinescu 2008-08-04 11:51:55 +00:00
parent 2d0652c808
commit a5529cbed4

View File

@ -7,6 +7,9 @@
#include "luatest.h"
#include <stdio.h>
#include "build.h"
#ifdef BUILD_ROMFS
#define ROMFS_MAX_FDS 4
#define fsmin( x , y ) ( ( x ) < ( y ) ? ( x ) : ( y ) )
@ -135,3 +138,12 @@ DM_DEVICE* fs_init()
{
return &romfs_device;
}
#else // #ifdef BUILD_ROMFS
DM_DEVICE* fs_init()
{
return NULL;
}
#endif // #ifdef BUILD_ROMFS