diff --git a/iop/system/ioman/include/ioman.h b/iop/system/ioman/include/ioman.h index ebe1fb0113f..4743bb63e3c 100644 --- a/iop/system/ioman/include/ioman.h +++ b/iop/system/ioman/include/ioman.h @@ -71,8 +71,10 @@ typedef struct _iop_device { } iop_device_t; #define IOMAN_RETURN_VALUE_IMPL(val) \ - static inline int my_ioman_retval_##val##_int(void) {return -val;} + static inline int my_ioman_retval_##val##_int(void) {return -val;} \ + static inline signed long long my_ioman_retval_##val##_s64(void) {return -val;} #define IOMAN_RETURN_VALUE(val) ((void*)&my_ioman_retval_##val##_int) +#define IOMAN_RETURN_VALUE_S64(val) ((void*)&my_ioman_retval_##val##_s64) typedef struct _iop_device_ops { int (*init)(iop_device_t *); diff --git a/iop/system/ioman/include/ioman_mod.h b/iop/system/ioman/include/ioman_mod.h index fa75e3de099..1a9a651ec0e 100644 --- a/iop/system/ioman/include/ioman_mod.h +++ b/iop/system/ioman/include/ioman_mod.h @@ -73,8 +73,10 @@ typedef struct _iop_io_device { } iop_io_device_t; #define IOMAN_RETURN_VALUE_IMPL(val) \ - static inline int my_ioman_retval_##val##_int(void) {return -val;} + static inline int my_ioman_retval_##val##_int(void) {return -val;} \ + static inline signed long long my_ioman_retval_##val##_s64(void) {return -val;} #define IOMAN_RETURN_VALUE(val) ((void*)&my_ioman_retval_##val##_int) +#define IOMAN_RETURN_VALUE_S64(val) ((void*)&my_ioman_retval_##val##_s64) typedef struct _iop_io_device_ops { int (*io_init)(iop_io_device_t *);