Ticket #8970: ps2-stdiostream.patch

File ps2-stdiostream.patch, 1.3 KB (added by sunmax, 12 years ago)

ps2-stdiostream.patch

  • backends/fs/stdiostream.cpp

    diff -ur release-0-13-0/backends/fs/stdiostream.cpp release-0-13-0-ps2/backends/fs/stdiostream.cpp
    old new  
    4040
    4141   #define fopen(a, b)         ps2_fopen(a, b)
    4242   #define fclose(a)           ps2_fclose(a)
    43    #define fseek(a, b, c)          ps2_fseek(a, b, c)
     43   #define fseek(a, b, c)      ps2_fseek(a, b, c)
    4444   #define ftell(a)            ps2_ftell(a)
    4545   #define feof(a)             ps2_feof(a)
    46    #define fread(a, b, c, d)       ps2_fread(a, b, c, d)
    47    #define fwrite(a, b, c, d)      ps2_fwrite(a, b, c, d)
     46   #define fread(a, b, c, d)   ps2_fread(a, b, c, d)
     47   #define fwrite(a, b, c, d)  ps2_fwrite(a, b, c, d)
    4848
    49    //#define fprintf               ps2_fprintf // used in common/util.cpp
    50    //#define fflush(a)         ps2_fflush(a)   // used in common/util.cpp
     49   #define fprintf             ps2_fprintf // used in common/util.cpp
     50   #define fflush(a)           ps2_fflush(a)   // used in common/util.cpp
     51   #define ferror(a)           ps2_ferror(a)
     52   #define clearerr(a)         ps2_clearerr(a)
    5153
    5254   //#define fgetc(a)          ps2_fgetc(a)    // not used
    5355   //#define fgets(a, b, c)            ps2_fgets(a, b, c)  // not used