diff --git a/src/xpdev/filewrap.h b/src/xpdev/filewrap.h
index c60a98f7042177f4bf1ed8180390f0620ad9f857..24a5af8aa3521e4c9935618750173c33b8adb420 100644
--- a/src/xpdev/filewrap.h
+++ b/src/xpdev/filewrap.h
@@ -155,8 +155,8 @@
 extern "C" {
 #endif
 
+DLLEXPORT int	xp_lockfile(int fd, off_t pos, off_t len, bool block);
 #if !defined(__BORLANDC__) && !defined(__WATCOMC__)
-	DLLEXPORT int	xp_lockfile(int fd, off_t pos, off_t len, bool block);
 	DLLEXPORT int	lock(int fd, off_t pos, off_t len);
 	DLLEXPORT int	unlock(int fd, off_t pos, off_t len);
 #endif