Changeset 2362


Ignore:
Timestamp:
Feb 5, 2013, 9:06:05 AM (6 years ago)
Author:
sam
Message:

sys: don’t use fopen on the PS3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sys/file.cpp

    r2361 r2362  
    2424    void Open(String const &file, FileAccess mode)
    2525    {
    26 #if HAVE_STDIO_H
     26#if __CELLOS_LV2__
     27#elif HAVE_STDIO_H
    2728        /* FIXME: no modes, no error checking, no nothing */
    2829        m_fd = fopen(file.C(), "r");
     
    3334    {
    3435        String ret;
    35 #if HAVE_STDIO_H
     36#if __CELLOS_LV2__
     37#elif HAVE_STDIO_H
    3638        while (!feof(m_fd))
    3739        {
     
    5153    void Close()
    5254    {
    53 #if HAVE_STDIO_H
     55#if __CELLOS_LV2__
     56#elif HAVE_STDIO_H
    5457        fclose(m_fd);
    5558#endif
    5659    }
    5760
    58 #if HAVE_STDIO_H
     61#if __CELLOS_LV2__
     62#elif HAVE_STDIO_H
    5963    FILE *m_fd;
    6064#endif
Note: See TracChangeset for help on using the changeset viewer.