From ccdd90bdd1a160209ee73e9c24b3eb0ceb3ea683 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 31 Jan 2017 05:14:49 +0100 Subject: [PATCH] Add runloop_defines.h --- menu/menu_event.c | 3 +-- runloop.h | 2 +- runloop_defines.h | 22 ++++++++++++++++++++++ 3 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 runloop_defines.h diff --git a/menu/menu_event.c b/menu/menu_event.c index 0bf8439fcc..72ee7c59d1 100644 --- a/menu/menu_event.c +++ b/menu/menu_event.c @@ -29,7 +29,6 @@ #include -#include "widgets/menu_dialog.h" #include "widgets/menu_input_dialog.h" #include "widgets/menu_osk.h" @@ -39,7 +38,7 @@ #include "menu_navigation.h" #include "../configuration.h" -#include "../runloop.h" +#include "../runloop_defines.h" static unsigned char menu_keyboard_key_state[RETROK_LAST] = {0}; diff --git a/runloop.h b/runloop.h index a81ac54ecf..6173dc0ff3 100644 --- a/runloop.h +++ b/runloop.h @@ -23,7 +23,7 @@ #include #include -#define runloop_cmd_press(current_input, id) (BIT64_GET(current_input, id)) +#include "runloop_defines.h" RETRO_BEGIN_DECLS diff --git a/runloop_defines.h b/runloop_defines.h new file mode 100644 index 0000000000..1759c7cc34 --- /dev/null +++ b/runloop_defines.h @@ -0,0 +1,22 @@ +/* RetroArch - A frontend for libretro. + * Copyright (C) 2011-2016 - Daniel De Matteis + * Copyright (C) 2016 - Brad Parker + * + * RetroArch is free software: you can redistribute it and/or modify it under the terms + * of the GNU General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with RetroArch. + * If not, see . + */ + +#ifndef __RETROARCH_RUNLOOP_DEFINES_H +#define __RETROARCH_RUNLOOP_DEFINES_H + +#define runloop_cmd_press(current_input, id) (BIT64_GET(current_input, id)) + +#endif