diff options
author | David <david@xagasoft.com> | 2007-06-19 06:05:55 +0000 |
---|---|---|
committer | David <david@xagasoft.com> | 2007-06-19 06:05:55 +0000 |
commit | 2b0fa89df615cb4789668014475ae64d99e773b5 (patch) | |
tree | 818d58faaf0e91530888284d75e6700d9097b1c7 /src/file.cpp | |
parent | 8a7fed8386c152023ddae611fe274b966287370a (diff) | |
download | libbu++-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.cpp | 10 |
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 | ||
137 | void Bu::File::truncate( long nSize ) | 138 | void Bu::File::truncate( long nSize ) |
138 | { | 139 | { |
139 | ftruncate( fileno( fh ), nSize ); | 140 | ftruncate( fileno( fh ), nSize ); |
140 | } | 141 | } |
141 | 142 | ||
142 | void Bu::File::flush() | 143 | void Bu::File::chmod( mode_t t ) |
143 | { | 144 | { |
144 | fflush( fh ); | 145 | fchmod( fileno( fh ), t ); |
145 | } | 146 | } |
147 | #endif | ||
146 | 148 | ||
147 | void Bu::File::chmod( mode_t t ) | 149 | void Bu::File::flush() |
148 | { | 150 | { |
149 | fchmod( fileno( fh ), t ); | 151 | fflush( fh ); |
150 | } | 152 | } |
151 | 153 | ||
152 | bool Bu::File::isOpen() | 154 | bool Bu::File::isOpen() |