Commit 94529273 authored by Alexandre Julliard's avatar Alexandre Julliard

include/msvcrt: Fix all definitions of size_t for Win64.

parent 429cd9e8
...@@ -22,8 +22,16 @@ typedef unsigned short wchar_t; ...@@ -22,8 +22,16 @@ typedef unsigned short wchar_t;
#endif #endif
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
#define __int64 long long
#endif
#ifndef _SIZE_T_DEFINED #ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef unsigned __int64 size_t;
#else
typedef unsigned int size_t; typedef unsigned int size_t;
#endif
#define _SIZE_T_DEFINED #define _SIZE_T_DEFINED
#endif #endif
......
...@@ -34,9 +34,16 @@ ...@@ -34,9 +34,16 @@
#define _FREEENTRY 0 #define _FREEENTRY 0
#define _USEDENTRY 1 #define _USEDENTRY 1
#if !defined(_MSC_VER) && !defined(__int64)
#define __int64 long long
#endif
#ifndef _SIZE_T_DEFINED #ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef unsigned __int64 size_t;
#else
typedef unsigned int size_t; typedef unsigned int size_t;
#endif
#define _SIZE_T_DEFINED #define _SIZE_T_DEFINED
#endif #endif
......
...@@ -23,8 +23,16 @@ ...@@ -23,8 +23,16 @@
#define __WINE_USE_MSVCRT #define __WINE_USE_MSVCRT
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
#define __int64 long long
#endif
#ifndef _SIZE_T_DEFINED #ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef unsigned __int64 size_t;
#else
typedef unsigned int size_t; typedef unsigned int size_t;
#endif
#define _SIZE_T_DEFINED #define _SIZE_T_DEFINED
#endif #endif
......
...@@ -23,8 +23,16 @@ ...@@ -23,8 +23,16 @@
#define __WINE_USE_MSVCRT #define __WINE_USE_MSVCRT
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
#define __int64 long long
#endif
#ifndef _SIZE_T_DEFINED #ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef unsigned __int64 size_t;
#else
typedef unsigned int size_t; typedef unsigned int size_t;
#endif
#define _SIZE_T_DEFINED #define _SIZE_T_DEFINED
#endif #endif
......
...@@ -11,15 +11,14 @@ ...@@ -11,15 +11,14 @@
#define __WINE_USE_MSVCRT #define __WINE_USE_MSVCRT
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
/* FIXME: not compatible, but needed for __int64 definition */
#include <basetsd.h>
#endif
#ifndef RC_INVOKED #ifndef RC_INVOKED
#include <stdarg.h> #include <stdarg.h>
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
#define __int64 long long
#endif
/* file._flag flags */ /* file._flag flags */
#define _IOREAD 0x0001 #define _IOREAD 0x0001
#define _IOWRT 0x0002 #define _IOWRT 0x0002
...@@ -81,7 +80,11 @@ typedef __int64 fpos_t; ...@@ -81,7 +80,11 @@ typedef __int64 fpos_t;
#endif #endif
#ifndef _SIZE_T_DEFINED #ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef unsigned __int64 size_t;
#else
typedef unsigned int size_t; typedef unsigned int size_t;
#endif
#define _SIZE_T_DEFINED #define _SIZE_T_DEFINED
#endif #endif
......
...@@ -26,10 +26,8 @@ typedef unsigned short wchar_t; ...@@ -26,10 +26,8 @@ typedef unsigned short wchar_t;
#endif #endif
#endif #endif
#ifndef _MSC_VER #if !defined(_MSC_VER) && !defined(__int64)
# ifndef __int64 #define __int64 long long
# define __int64 long long
# endif
#endif #endif
#define EXIT_SUCCESS 0 #define EXIT_SUCCESS 0
...@@ -56,7 +54,11 @@ typedef struct _ldiv_t { ...@@ -56,7 +54,11 @@ typedef struct _ldiv_t {
} ldiv_t; } ldiv_t;
#ifndef _SIZE_T_DEFINED #ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef unsigned __int64 size_t;
#else
typedef unsigned int size_t; typedef unsigned int size_t;
#endif
#define _SIZE_T_DEFINED #define _SIZE_T_DEFINED
#endif #endif
......
...@@ -23,6 +23,10 @@ ...@@ -23,6 +23,10 @@
#define __WINE_USE_MSVCRT #define __WINE_USE_MSVCRT
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
#define __int64 long long
#endif
#ifndef _DEV_T_DEFINED #ifndef _DEV_T_DEFINED
typedef unsigned int _dev_t; typedef unsigned int _dev_t;
#define _DEV_T_DEFINED #define _DEV_T_DEFINED
...@@ -67,7 +71,11 @@ typedef int pid_t; ...@@ -67,7 +71,11 @@ typedef int pid_t;
#endif #endif
#ifndef _SSIZE_T_DEFINED #ifndef _SSIZE_T_DEFINED
#ifdef _WIN64
typedef __int64 ssize_t;
#else
typedef int ssize_t; typedef int ssize_t;
#endif
#define _SSIZE_T_DEFINED #define _SSIZE_T_DEFINED
#endif #endif
......
...@@ -30,8 +30,16 @@ typedef unsigned short wchar_t; ...@@ -30,8 +30,16 @@ typedef unsigned short wchar_t;
#endif #endif
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
#define __int64 long long
#endif
#ifndef _SIZE_T_DEFINED #ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef unsigned __int64 size_t;
#else
typedef unsigned int size_t; typedef unsigned int size_t;
#endif
#define _SIZE_T_DEFINED #define _SIZE_T_DEFINED
#endif #endif
......
...@@ -35,10 +35,18 @@ typedef unsigned short wchar_t; ...@@ -35,10 +35,18 @@ typedef unsigned short wchar_t;
#define WCHAR_MIN 0 #define WCHAR_MIN 0
#define WCHAR_MAX ((wchar_t)-1) #define WCHAR_MAX ((wchar_t)-1)
#if !defined(_MSC_VER) && !defined(__int64)
#define __int64 long long
#endif
typedef int mbstate_t; typedef int mbstate_t;
#ifndef _SIZE_T_DEFINED #ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef unsigned __int64 size_t;
#else
typedef unsigned int size_t; typedef unsigned int size_t;
#endif
#define _SIZE_T_DEFINED #define _SIZE_T_DEFINED
#endif #endif
...@@ -48,12 +56,6 @@ typedef unsigned short wctype_t; ...@@ -48,12 +56,6 @@ typedef unsigned short wctype_t;
#define _WCTYPE_T_DEFINED #define _WCTYPE_T_DEFINED
#endif #endif
#ifndef _MSC_VER
# ifndef __int64
# define __int64 long long
# endif
#endif
#ifndef WEOF #ifndef WEOF
#define WEOF (wint_t)(0xFFFF) #define WEOF (wint_t)(0xFFFF)
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment