Merge pull request #1884 from daveshah1/master

Two Android Fixes
This commit is contained in:
Twinaphex 2015-07-02 16:17:18 +02:00
commit 1d7c1ec23b
2 changed files with 3 additions and 11 deletions

View File

@ -278,11 +278,7 @@ static bool android_input_lookup_name(char *buf,
goto error;
CALL_INT_METHOD(env, *vendorId, device, getVendorId);
if (!*vendorId)
{
RARCH_ERR("Failed to find vendor id for device ID: %d\n", id);
goto error;
}
RARCH_LOG("device vendor id: %d\n", *vendorId);
getProductId = NULL;
@ -292,11 +288,7 @@ static bool android_input_lookup_name(char *buf,
*productId = 0;
CALL_INT_METHOD(env, *productId, device, getProductId);
if (!*productId)
{
RARCH_ERR("Failed to find product id for device ID: %d\n", id);
goto error;
}
RARCH_LOG("device product id: %d\n", *productId);
return true;

View File

@ -65,7 +65,7 @@ FILE *rarch_main_log_file(void);
#define PROGRAM_NAME "N/A"
#endif
#if defined(RARCH_INTERNAL)
#if defined(RARCH_INTERNAL) && !defined(ANDROID)
#ifdef __cplusplus
extern "C" {