From 3a23afcaa99c4383e203f6389a4b81877f08bc8b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 1 May 2016 15:59:55 +0200 Subject: [PATCH] Buildfix for consoles --- file_path_special.c | 4 ++-- file_path_special.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/file_path_special.c b/file_path_special.c index 5b9851b557..16a7927573 100644 --- a/file_path_special.c +++ b/file_path_special.c @@ -141,7 +141,6 @@ void fill_pathname_abbreviate_special(char *out_path, retro_assert(strlcpy(out_path, in_path, size) < size); } -#if !defined(RARCH_CONSOLE) bool fill_pathname_application_data(char *s, size_t len) { #if defined(_WIN32) && !defined(_XBOX) @@ -162,7 +161,7 @@ bool fill_pathname_application_data(char *s, size_t len) "Library/Application Support", len); return true; } -#elif !defined(__CELLOS_LV2__) && !defined(_XBOX) +#elif !defined(RARCH_CONSOLE) const char *xdg = getenv("XDG_CONFIG_HOME"); const char *appdata = getenv("HOME"); @@ -189,6 +188,7 @@ bool fill_pathname_application_data(char *s, size_t len) return false; } +#if !defined(RARCH_CONSOLE) void fill_pathname_application_path(char *s, size_t len) { #ifdef __APPLE__ diff --git a/file_path_special.h b/file_path_special.h index 239058984d..6d10b466e4 100644 --- a/file_path_special.h +++ b/file_path_special.h @@ -22,8 +22,6 @@ #include -#if !defined(RARCH_CONSOLE) bool fill_pathname_application_data(char *s, size_t len); -#endif #endif