Skip to content
Snippets Groups Projects
Commit 2465ac46 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
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
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2863 passed
......@@ -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__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment