nga-c: filesystem device no longer included if ENABLE_FILES not defined

FossilOrigin-Name: c1ad7c9c9b2e5dd367792f752bdf70eaca622c6bfb96bacb184388f86e7f7206
This commit is contained in:
crc 2024-01-10 22:18:24 +00:00
parent 1632155687
commit 20092a037e
2 changed files with 6 additions and 0 deletions

View file

@ -27,6 +27,8 @@
- nga-c
- use UTF32 internally (translating to/from UTF8 externally)
- filesystem device no longer included if ENABLE_FILES not
defined
Future Notes

View file

@ -296,7 +296,9 @@ V guard(NgaState *vm, int n, int m, int diff) {
#include "dev-blocks.c"
#endif
#ifdef ENABLE_FILES
#include "dev-files.c"
#endif
#ifdef ENABLE_MULTICORE
#include "dev-multicore.c"
@ -969,7 +971,9 @@ enum flags {
V register_devices(NgaState *vm) {
register_device(vm, io_output, query_output);
register_device(vm, io_keyboard, query_keyboard);
#ifdef ENABLE_FILES
register_device(vm, io_filesystem, query_filesystem);
#endif
register_device(vm, io_image, query_image);
#ifdef ENABLE_FLOATS
register_device(vm, io_floatingpoint, query_floatingpoint);