]> sourceware.org Git - newlib-cygwin.git/commitdiff
2011-05-22 Antoine LECA <antoinel@users.sourceforge.net>
authorChris Sutcliffe <ir0nh34d@users.sourceforge.net>
Mon, 23 May 2011 02:54:21 +0000 (02:54 +0000)
committerChris Sutcliffe <ir0nh34d@users.sourceforge.net>
Mon, 23 May 2011 02:54:21 +0000 (02:54 +0000)
        * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
        not always available, go the long way and use the explicit named union
        members, which are also declared in winnt.h.

winsup/mingw/ChangeLog
winsup/mingw/mingwex/mingw-fseek.c

index 4c5de35c8242593a4a69642f2367552beab6a685..047d07c8026c7140c7d491fec53280b94b8ddf0c 100644 (file)
@@ -1,11 +1,17 @@
 2011-05-22  Antoine LECA  <antoinel@users.sourceforge.net>
 
-       * mingwex/isblank.c:  Fix typo in declaration.
+       * mingwex/mingw-fseek.c: The anonymous union feature for LARGE_INTEGER is
+       not always available, go the long way and use the explicit named union
+       members, which are also declared in winnt.h.
 
 2011-05-22  Antoine LECA  <antoinel@users.sourceforge.net>
 
-       * include/_mingw.h:  Define GCC system_header only if PCC is not defined.
-       * include/stdlib.h:  Fix a long-standing typo which prevented correct use of
+       * mingwex/isblank.c: Fix typo in declaration.
+
+2011-05-22  Antoine LECA  <antoinel@users.sourceforge.net>
+
+       * include/_mingw.h: Define GCC system_header only if PCC is not defined.
+       * include/stdlib.h: Fix a long-standing typo which prevented correct use of
        the MB_CUR_MAX macro/variable when DECLSPEC is not supported and <stdlib.h>
        is included before <ctype.h>.
 
index b4f45cc7e1fd2ab56b3924f3aa81c6c5d16ba586..9a13957befeaedff4f11333366a4c457781d8df1 100644 (file)
@@ -47,16 +47,16 @@ __mingw_fwrite (const void *buffer, size_t size, size_t count, FILE *fp)
       LARGE_INTEGER current_position = {{0LL}};
       __mingw_fseek_called = 0;
       fflush (fp);
-      actual_length.LowPart = GetFileSize ((HANDLE) _get_osfhandle (fileno (fp)), 
-                                          &actual_length.HighPart);
-      if (actual_length.LowPart == 0xFFFFFFFF 
+      actual_length.u.LowPart = GetFileSize ((HANDLE) _get_osfhandle (fileno (fp)), 
+                                            &actual_length.u.HighPart);
+      if (actual_length.u.LowPart == 0xFFFFFFFF 
           && GetLastError() != NO_ERROR )
         return -1;
-      current_position.LowPart = SetFilePointer ((HANDLE) _get_osfhandle (fileno (fp)),
-                                                current_position.LowPart,
-                                                &current_position.HighPart,
+      current_position.u.LowPart = SetFilePointer ((HANDLE) _get_osfhandle (fileno (fp)),
+                                                  current_position.u.LowPart,
+                                                  &current_position.u.HighPart,
                                                 FILE_CURRENT);
-      if (current_position.LowPart == 0xFFFFFFFF 
+      if (current_position.u.LowPart == 0xFFFFFFFF 
           && GetLastError() != NO_ERROR )
         return -1;
 
@@ -102,5 +102,5 @@ __mingw_fwrite (const void *buffer, size_t size, size_t count, FILE *fp)
            FlushFileBuffers ((HANDLE) _get_osfhandle (fileno (fp)));
        }
     }
-  return fwrite (buffer, size, count, fp);
+  return (fwrite) (buffer, size, count, fp);
 }
This page took 0.036028 seconds and 5 git commands to generate.