diff --git a/gfx/video_driver.c b/gfx/video_driver.c index b4ae34c571..1656d11bab 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -2409,7 +2409,7 @@ void video_driver_frame(const void *data, unsigned width, video_driver_frame_count++; - // Display the FPS, with a higher priority. + /* Display the FPS, with a higher priority. */ if (video_info.fps_show) runloop_msg_queue_push(video_info.fps_text, 2, 1, true); } diff --git a/input/input_driver.c b/input/input_driver.c index 931da37956..0506b90a23 100644 --- a/input/input_driver.c +++ b/input/input_driver.c @@ -2662,7 +2662,7 @@ void input_config_get_bind_string(char *buf, const struct retro_keybind *bind, { if (delim) strlcat(buf, ", ", size); - strlcat(buf, msg_hash_to_str((msg_hash_enums)tag), size ); + strlcat(buf, msg_hash_to_str((enum msg_hash_enums)tag), size ); delim = 1; } } diff --git a/libretro-common/file/nbio/nbio_linux.c b/libretro-common/file/nbio/nbio_linux.c index e6eba48620..7b40551194 100644 --- a/libretro-common/file/nbio/nbio_linux.c +++ b/libretro-common/file/nbio/nbio_linux.c @@ -20,6 +20,8 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#include + #if defined(__linux__) #define _GNU_SOURCE @@ -28,7 +30,6 @@ #include #include -#include #include #include @@ -226,5 +227,17 @@ nbio_intf_t nbio_linux = { nbio_linux_free, "nbio_linux", }; +#else +nbio_intf_t nbio_linux = { + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + "nbio_linux", +}; #endif diff --git a/libretro-common/file/nbio/nbio_unixmmap.c b/libretro-common/file/nbio/nbio_unixmmap.c index 869a3864ad..25ec106cd8 100644 --- a/libretro-common/file/nbio/nbio_unixmmap.c +++ b/libretro-common/file/nbio/nbio_unixmmap.c @@ -20,13 +20,13 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#include + #if defined(HAVE_MMAP) && defined(BSD) #include #include -#include - #ifdef _WIN32 #include #else @@ -157,5 +157,17 @@ nbio_intf_t nbio_mmap_unix = { nbio_mmap_unix_free, "nbio_mmap_unix", }; +#else +nbio_intf_t nbio_mmap_unix = { + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + "nbio_mmap_unix", +}; #endif diff --git a/libretro-common/file/nbio/nbio_windowsmmap.c b/libretro-common/file/nbio/nbio_windowsmmap.c index 17e2a2332d..42a22a16d6 100644 --- a/libretro-common/file/nbio/nbio_windowsmmap.c +++ b/libretro-common/file/nbio/nbio_windowsmmap.c @@ -20,12 +20,13 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#include + #if defined(_WIN32) && !defined(_XBOX) #include #include -#include #include #include @@ -79,7 +80,7 @@ static void *nbio_mmap_win32_open(const char * filename, unsigned mode) ptr = MapViewOfFile(mem, is_write ? (FILE_MAP_READ|FILE_MAP_WRITE) : FILE_MAP_READ, 0, 0, len.QuadPart); CloseHandle(mem); - handle = (nbio_mmap_win32_t*)malloc(sizeof(struct nbio_mmap_win32_t)); + handle = (struct nbio_mmap_win32_t*)malloc(sizeof(struct nbio_mmap_win32_t)); handle->file = file; handle->is_write = is_write; @@ -182,5 +183,17 @@ nbio_intf_t nbio_mmap_win32 = { nbio_mmap_win32_free, "nbio_mmap_win32", }; +#else +nbio_intf_t nbio_mmap_win32 = { + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + "nbio_mmap_win32", +}; #endif diff --git a/retroarch.c b/retroarch.c index f6f4061846..88173a0266 100644 --- a/retroarch.c +++ b/retroarch.c @@ -2799,11 +2799,10 @@ static enum runloop_state runloop_check_state( driver_set_nonblock_state(); } - // Display the fast forward state to the user, if needed. - if (runloop_fastmotion) { + /* Display the fast forward state to the user, if needed. */ + if (runloop_fastmotion) runloop_msg_queue_push( msg_hash_to_str(MSG_FAST_FORWARD), 1, 1, false); - } old_button_state = new_button_state; old_hold_button_state = new_hold_button_state;