Skip to content

Commit

Permalink
guard shared-module/os/getenv.c as well
Browse files Browse the repository at this point in the history
  • Loading branch information
RetiredWizard committed Feb 26, 2025
1 parent 761d787 commit e1260eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shared-module/os/getenv.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

#include "extmod/vfs.h"
#include "extmod/vfs_fat.h"

#if CIRCUITPY_OS_GETENV
typedef FIL file_arg;
static bool open_file(const char *name, file_arg *active_file) {
#if defined(UNIX)
Expand Down Expand Up @@ -412,3 +414,4 @@ os_getenv_err_t common_hal_os_getenv_int(const char *key, mp_int_t *value) {
common_hal_os_getenv_showerr(key, result);
return result;
}
#endif

0 comments on commit e1260eb

Please sign in to comment.