diff --git a/apps/plugin.h b/apps/plugin.h index e69ab52321..f025704f31 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -295,7 +295,7 @@ struct plugin_api { /* file */ int (*PREFIX(open))(const char* pathname, int flags); - int (*close)(int fd); + int (*PREFIX(close))(int fd); ssize_t (*PREFIX(read))(int fd, void* buf, size_t count); off_t (*PREFIX(lseek))(int fd, off_t offset, int whence); int (*PREFIX(creat))(const char *pathname); diff --git a/apps/plugins/rockboy/rockmacros.h b/apps/plugins/rockboy/rockmacros.h index 01beb43fb5..0e63bad8e9 100644 --- a/apps/plugins/rockboy/rockmacros.h +++ b/apps/plugins/rockboy/rockmacros.h @@ -75,7 +75,7 @@ void dynamic_recompile (struct dynarec_block *newblock); #undef lseek #define lseek(a,b,c) rb->sim_lseek((a),(b),(c)) #undef close -#define close(a) rb->close((a)) +#define close(a) rb->sim_close((a)) #undef read #define read(a,b,c) rb->sim_read((a),(b),(c)) #undef write