From f659151c8f24ac93ae6e8e5c894e48eac0b6c9ec Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 1 May 2013 04:03:40 +0200 Subject: [PATCH] (PS3) Clean up FS defines --- file_path.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/file_path.c b/file_path.c index e28bc495f0..ccaf1a95b4 100644 --- a/file_path.c +++ b/file_path.c @@ -24,9 +24,14 @@ #if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__) || defined(__BLACKBERRY_QNX__) #include //stat() is defined here -#ifndef __BLACKBERRY_QNX__ -#define S_ISDIR(x) (x & CELL_FS_S_IFDIR) #endif + +#if defined(__CELLOS_LV2__) + +#ifndef S_ISDIR +#define S_ISDIR(x) (x & 0040000) +#endif + #endif #if defined(_WIN32)