aboutsummaryrefslogtreecommitdiff
path: root/src/file.cpp
diff options
context:
space:
mode:
authorDavid <david@xagasoft.com>2007-06-19 06:05:55 +0000
committerDavid <david@xagasoft.com>2007-06-19 06:05:55 +0000
commit2b0fa89df615cb4789668014475ae64d99e773b5 (patch)
tree818d58faaf0e91530888284d75e6700d9097b1c7 /src/file.cpp
parent8a7fed8386c152023ddae611fe274b966287370a (diff)
downloadlibbu++-2b0fa89df615cb4789668014475ae64d99e773b5.tar.gz
libbu++-2b0fa89df615cb4789668014475ae64d99e773b5.tar.bz2
libbu++-2b0fa89df615cb4789668014475ae64d99e773b5.tar.xz
libbu++-2b0fa89df615cb4789668014475ae64d99e773b5.zip
david - got some things compiling on win32 (wine/devc++)
Diffstat (limited to 'src/file.cpp')
-rw-r--r--src/file.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/file.cpp b/src/file.cpp
index 368b788..1a8bd08 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -134,19 +134,21 @@ void Bu::File::setBlocking( bool bBlocking )
134 return; 134 return;
135} 135}
136 136
137#ifndef WIN32
137void Bu::File::truncate( long nSize ) 138void Bu::File::truncate( long nSize )
138{ 139{
139 ftruncate( fileno( fh ), nSize ); 140 ftruncate( fileno( fh ), nSize );
140} 141}
141 142
142void Bu::File::flush() 143void Bu::File::chmod( mode_t t )
143{ 144{
144 fflush( fh ); 145 fchmod( fileno( fh ), t );
145} 146}
147#endif
146 148
147void Bu::File::chmod( mode_t t ) 149void Bu::File::flush()
148{ 150{
149 fchmod( fileno( fh ), t ); 151 fflush( fh );
150} 152}
151 153
152bool Bu::File::isOpen() 154bool Bu::File::isOpen()