From 03d135f06df87f75c8bd98fd8b5a62fef3545f8a Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 5 Feb 2013 08:06:05 +0000 Subject: [PATCH] =?UTF-8?q?sys:=20don=E2=80=99t=20use=20fopen=20on=20the?= =?UTF-8?q?=20PS3.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sys/file.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/sys/file.cpp b/src/sys/file.cpp index c376bb2d..abad7ffb 100644 --- a/src/sys/file.cpp +++ b/src/sys/file.cpp @@ -23,7 +23,8 @@ class FileData void Open(String const &file, FileAccess mode) { -#if HAVE_STDIO_H +#if __CELLOS_LV2__ +#elif HAVE_STDIO_H /* FIXME: no modes, no error checking, no nothing */ m_fd = fopen(file.C(), "r"); #endif @@ -32,7 +33,8 @@ class FileData String ReadString() { String ret; -#if HAVE_STDIO_H +#if __CELLOS_LV2__ +#elif HAVE_STDIO_H while (!feof(m_fd)) { char buf[BUFSIZ]; @@ -50,12 +52,14 @@ class FileData void Close() { -#if HAVE_STDIO_H +#if __CELLOS_LV2__ +#elif HAVE_STDIO_H fclose(m_fd); #endif } -#if HAVE_STDIO_H +#if __CELLOS_LV2__ +#elif HAVE_STDIO_H FILE *m_fd; #endif Atomic m_refcount;