From 040129ba4eb3ba6fae13dfd89d62b2666dbfe3d4 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 8 Nov 2005 07:45:00 +0000
Subject: [PATCH] Created a Borland/MS eof() compatible macro for *nix.

---
 src/xpdev/filewrap.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/xpdev/filewrap.h b/src/xpdev/filewrap.h
index dc0d95f74b..78d295e868 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__)
 
-- 
GitLab