Some CXX_BUILD buildfixes

This commit is contained in:
twinaphex 2015-11-28 00:33:01 +01:00
parent 51c7ba760c
commit 265e36a5d0
3 changed files with 6 additions and 5 deletions

View File

@ -71,7 +71,7 @@ bool drm_get_connector(int fd)
RARCH_LOG("[DRM]: Found %d connectors.\n", g_drm_resources->count_connectors);
for (i = 0; i < g_drm_resources->count_connectors; i++)
for (i = 0; (int)i < g_drm_resources->count_connectors; i++)
{
drmModeConnectorPtr conn = drmModeGetConnector(
fd, g_drm_resources->connectors[i]);
@ -92,7 +92,7 @@ bool drm_get_connector(int fd)
monitor_index = 0;
for (i = 0; i < g_drm_resources->count_connectors; i++)
for (i = 0; (int)i < g_drm_resources->count_connectors; i++)
{
g_drm_connector = drmModeGetConnector(fd,
g_drm_resources->connectors[i]);
@ -123,7 +123,7 @@ bool drm_get_encoder(int fd)
{
unsigned i;
for (i = 0; i < g_drm_resources->count_encoders; i++)
for (i = 0; (int)i < g_drm_resources->count_encoders; i++)
{
g_drm_encoder = drmModeGetEncoder(fd, g_drm_resources->encoders[i]);
@ -143,7 +143,7 @@ bool drm_get_encoder(int fd)
return false;
}
for (i = 0; i < g_drm_connector->count_modes; i++)
for (i = 0; (int)i < g_drm_connector->count_modes; i++)
{
RARCH_LOG("[DRM]: Mode %d: (%s) %d x %d, %u Hz\n",
i,

View File

@ -33,7 +33,7 @@ extern uint32_t g_connector_id;
extern int g_drm_fd;
extern uint32_t g_crtc_id;
struct pollfd g_drm_fds;
extern struct pollfd g_drm_fds;
extern drmModeConnector *g_drm_connector;
extern drmModeModeInfo *g_drm_mode;

View File

@ -37,6 +37,7 @@
#include "input/keyboard_line.h"
#include "input/input_common.h"
#include "input/input_driver.h"
#ifdef HAVE_MENU
#include "menu/menu.h"