Various small fix ups needed for mingw-w64 build.
[claws.git] / src / common / w32_stdlib.c
index 3aba8f91094b78cd25374a25ccd81db0aa20e165..a55a17efe6a74c65b802806676680face08e1196 100644 (file)
@@ -31,6 +31,8 @@ void srandom( unsigned int seed ){
   srand( seed );
 }
 
+#if MINGW64_VERSION < 200
 int truncate( const char *path, off_t length ){
   return -1;
 }
+#endif