[ros-diffs] [tkreuzer] 34709: add size_t definition to _mingw.h (ported from mingw)

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Thu Jul 24 01:00:47 CEST 2008


Author: tkreuzer
Date: Wed Jul 23 18:00:47 2008
New Revision: 34709

URL: http://svn.reactos.org/svn/reactos?rev=34709&view=rev
Log:
add size_t definition to _mingw.h (ported from mingw)

Modified:
    branches/ros-amd64-bringup/reactos/include/crt/_mingw.h

Modified: branches/ros-amd64-bringup/reactos/include/crt/_mingw.h
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/include/crt/_mingw.h?rev=34709&r1=34708&r2=34709&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/include/crt/_mingw.h [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/include/crt/_mingw.h [iso-8859-1] Wed Jul 23 18:00:47 2008
@@ -178,6 +178,20 @@
 # define __MSVCRT_VERSION__ 0x0600
 #endif
 
+#ifndef _SIZE_T_DEFINED
+#define _SIZE_T_DEFINED
+#undef size_t
+#ifdef _WIN64
+#if defined(__GNUC__) && defined(__STRICT_ANSI__)
+  typedef unsigned int size_t __attribute__ ((mode (DI)));
+#else
+  typedef unsigned __int64 size_t;
+#endif
+#else
+  typedef unsigned int size_t;
+#endif
+#endif
+
 #define __MINGW32_VERSION 3.13
 #define __MINGW32_MAJOR_VERSION 3
 #define __MINGW32_MINOR_VERSION 13



More information about the Ros-diffs mailing list