diff --git a/src/xpdev/filewrap.h b/src/xpdev/filewrap.h index dc0d95f74bb0c624c1b238a82b642c61b03e916a..78d295e86873b3ea3dc36d6b480123f629d326d9 100644 --- a/src/xpdev/filewrap.h +++ b/src/xpdev/filewrap.h @@ -8,7 +8,7 @@ * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * * - * Copyright 2004 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2005 Rob Swindell - http://www.synchro.net/copyright.html * * * * This library is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public License * @@ -111,6 +111,7 @@ #endif #define chsize(fd,size) ftruncate(fd,size) #define tell(fd) lseek(fd,0,SEEK_CUR) + #define eof(fd) (tell(fd)==filelength(fd)) #elif defined(__OS2__)