Commit 2465ac46 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Fix FreeBSD/Clang C++ error

/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))
  
parent 70cb017b
Pipeline #2863 passed with stage
in 11 minutes and 1 second
......@@ -121,7 +121,9 @@
#define chsize(fd,size) ftruncate(fd,size)
#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__)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment