Commits (1)
  • Rob Swindell's avatar
    Fix FreeBSD/Clang C++ error · 2465ac46
    Rob Swindell authored
    /usr/include/c++/v1/iterator:1168:87: error: expected unqualified-id
      ...&& traits_type::eq_int_type(__sbuf_->sputc(__c), traits_type::eof()))
                                                                       ^
    /src/sbbs3/../xpdev/filewrap.h:124:21: note:
    
          expanded from macro 'eof'
            #define eof(fd)                         (tell(fd)==filelength(fd))
      
    2465ac46
...@@ -121,7 +121,9 @@ ...@@ -121,7 +121,9 @@
#define chsize(fd,size) ftruncate(fd,size) #define chsize(fd,size) ftruncate(fd,size)
#define tell(fd) lseek(fd,0,SEEK_CUR) #define tell(fd) lseek(fd,0,SEEK_CUR)
#define eof(fd) (tell(fd)==filelength(fd)) #ifndef __cplusplus // Conflict with FreeBSD /usr/include/c++/v1/iterator
#define eof(fd) (tell(fd)==filelength(fd))
#endif
#elif defined(__OS2__) #elif defined(__OS2__)
......