Changeset 523 for cpp/common/virtfile


Ignore:
Timestamp:
07/03/16 17:36:35 (8 years ago)
Author:
Maciej Komosinski
Message:

No more overloading of fopen/fclose/... functions for the VirtFILE class. #define VIRTFILE_OVERLOADING to enable overloading only when necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/virtfile/virtfile.h

    r427 r523  
    136136DLLEXP bool Vdirexists(const char* path, bool is_writable);
    137137
     138#ifdef VIRTFILE_OVERLOADING
     139//may be needed for redefine... or if someone simply prefers overloading ;-)
     140
    138141DLLEXP int fread(void *ptr, size_t size, size_t nmemb, VirtFILE* f);
    139142DLLEXP int fwrite(const void *ptr, size_t size, size_t nmemb, VirtFILE* f);
    140 
    141143
    142144//since we want our own feof(VirtFILE*) function and some systems unfortunately define feof as a macro, we need to #undef it. Same as in virtfile.cpp
     
    174176DLLEXP int closedir(VirtDIR* d);
    175177
     178#endif //VIRTFILE_OVERLOADING
     179
    176180#endif
    177 
Note: See TracChangeset for help on using the changeset viewer.