Commit 70015ab5 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

include/msvcrt: Make sure that __int64 is properly defined on a 64-bit platform.

parent 9aa42351
...@@ -24,14 +24,18 @@ typedef unsigned short wchar_t; ...@@ -24,14 +24,18 @@ typedef unsigned short wchar_t;
#endif #endif
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
#define __int64 long long
#endif
#if defined(__x86_64__) && !defined(_WIN64) #if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64 #define _WIN64
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
# ifdef _WIN64
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#ifndef _SIZE_T_DEFINED #ifndef _SIZE_T_DEFINED
#ifdef _WIN64 #ifdef _WIN64
typedef unsigned __int64 size_t; typedef unsigned __int64 size_t;
......
...@@ -20,8 +20,14 @@ typedef unsigned short wchar_t; ...@@ -20,8 +20,14 @@ typedef unsigned short wchar_t;
#endif #endif
#endif #endif
#ifndef _MSC_VER #if defined(__x86_64__) && !defined(_WIN64)
# ifndef __int64 #define _WIN64
#endif
#if !defined(_MSC_VER) && !defined(__int64)
# ifdef _WIN64
# define __int64 long
# else
# define __int64 long long # define __int64 long long
# endif # endif
#endif #endif
......
...@@ -34,14 +34,18 @@ ...@@ -34,14 +34,18 @@
#define _FREEENTRY 0 #define _FREEENTRY 0
#define _USEDENTRY 1 #define _USEDENTRY 1
#if !defined(_MSC_VER) && !defined(__int64)
#define __int64 long long
#endif
#if defined(__x86_64__) && !defined(_WIN64) #if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64 #define _WIN64
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
# ifdef _WIN64
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#ifndef _SIZE_T_DEFINED #ifndef _SIZE_T_DEFINED
#ifdef _WIN64 #ifdef _WIN64
typedef unsigned __int64 size_t; typedef unsigned __int64 size_t;
......
...@@ -25,14 +25,18 @@ ...@@ -25,14 +25,18 @@
#include <pshpack8.h> #include <pshpack8.h>
#if !defined(_MSC_VER) && !defined(__int64)
#define __int64 long long
#endif
#if defined(__x86_64__) && !defined(_WIN64) #if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64 #define _WIN64
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
# ifdef _WIN64
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#ifndef _SIZE_T_DEFINED #ifndef _SIZE_T_DEFINED
#ifdef _WIN64 #ifdef _WIN64
typedef unsigned __int64 size_t; typedef unsigned __int64 size_t;
......
...@@ -23,14 +23,18 @@ ...@@ -23,14 +23,18 @@
#define __WINE_USE_MSVCRT #define __WINE_USE_MSVCRT
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
#define __int64 long long
#endif
#if defined(__x86_64__) && !defined(_WIN64) #if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64 #define _WIN64
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
# ifdef _WIN64
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#ifndef _SIZE_T_DEFINED #ifndef _SIZE_T_DEFINED
#ifdef _WIN64 #ifdef _WIN64
typedef unsigned __int64 size_t; typedef unsigned __int64 size_t;
......
...@@ -27,6 +27,14 @@ ...@@ -27,6 +27,14 @@
#define _WIN64 #define _WIN64
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
# ifdef _WIN64
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#ifndef _WCHAR_T_DEFINED #ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED #define _WCHAR_T_DEFINED
#ifndef __cplusplus #ifndef __cplusplus
......
...@@ -17,14 +17,18 @@ ...@@ -17,14 +17,18 @@
#include <stdarg.h> #include <stdarg.h>
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
#define __int64 long long
#endif
#if defined(__x86_64__) && !defined(_WIN64) #if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64 #define _WIN64
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
# ifdef _WIN64
# define __int64 long
# else
# define __int64 long long
# endif
#endif
/* file._flag flags */ /* file._flag flags */
#define _IOREAD 0x0001 #define _IOREAD 0x0001
#define _IOWRT 0x0002 #define _IOWRT 0x0002
......
...@@ -28,8 +28,16 @@ typedef unsigned short wchar_t; ...@@ -28,8 +28,16 @@ typedef unsigned short wchar_t;
#endif #endif
#endif #endif
#if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64
#endif
#if !defined(_MSC_VER) && !defined(__int64) #if !defined(_MSC_VER) && !defined(__int64)
#define __int64 long long # ifdef _WIN64
# define __int64 long
# else
# define __int64 long long
# endif
#endif #endif
#define EXIT_SUCCESS 0 #define EXIT_SUCCESS 0
......
...@@ -18,14 +18,18 @@ typedef unsigned short wchar_t; ...@@ -18,14 +18,18 @@ typedef unsigned short wchar_t;
#endif #endif
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
#define __int64 long long
#endif
#if defined(__x86_64__) && !defined(_WIN64) #if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64 #define _WIN64
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
# ifdef _WIN64
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#ifndef _SIZE_T_DEFINED #ifndef _SIZE_T_DEFINED
#ifdef _WIN64 #ifdef _WIN64
typedef unsigned __int64 size_t; typedef unsigned __int64 size_t;
......
...@@ -22,12 +22,6 @@ typedef unsigned short wchar_t; ...@@ -22,12 +22,6 @@ typedef unsigned short wchar_t;
#endif #endif
#endif #endif
#ifndef _MSC_VER
# ifndef __int64
# define __int64 long long
# endif
#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
......
...@@ -23,14 +23,18 @@ ...@@ -23,14 +23,18 @@
#define __WINE_USE_MSVCRT #define __WINE_USE_MSVCRT
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
#define __int64 long long
#endif
#if defined(__x86_64__) && !defined(_WIN64) #if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64 #define _WIN64
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
# ifdef _WIN64
# define __int64 long
# else
# define __int64 long long
# endif
#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
......
...@@ -32,14 +32,18 @@ typedef unsigned short wchar_t; ...@@ -32,14 +32,18 @@ typedef unsigned short wchar_t;
#endif #endif
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
#define __int64 long long
#endif
#if defined(__x86_64__) && !defined(_WIN64) #if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64 #define _WIN64
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
# ifdef _WIN64
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#ifndef _SIZE_T_DEFINED #ifndef _SIZE_T_DEFINED
#ifdef _WIN64 #ifdef _WIN64
typedef unsigned __int64 size_t; typedef unsigned __int64 size_t;
......
...@@ -37,14 +37,18 @@ typedef unsigned short wchar_t; ...@@ -37,14 +37,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
#if defined(__x86_64__) && !defined(_WIN64) #if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64 #define _WIN64
#endif #endif
#if !defined(_MSC_VER) && !defined(__int64)
# ifdef _WIN64
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#ifndef DECLSPEC_ALIGN #ifndef DECLSPEC_ALIGN
# if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS) # if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS)
# define DECLSPEC_ALIGN(x) __declspec(align(x)) # define DECLSPEC_ALIGN(x) __declspec(align(x))
......
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