ntdll: Make the is_win64 variable global.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-03-26 14:23:02 +01:00
parent 482a26e135
commit 4e2bd548b1
5 changed files with 2 additions and 7 deletions

View File

@ -114,8 +114,6 @@ static const BOOL use_preloader = TRUE;
static const BOOL use_preloader = FALSE;
#endif
static const BOOL is_win64 = (sizeof(void *) > sizeof(int));
static char *argv0;
static const char *bin_dir;
static const char *dll_dir;

View File

@ -70,8 +70,6 @@ static ULONG execute_flags = MEM_EXECUTE_OPTION_DISABLE | (sizeof(void *) > size
MEM_EXECUTE_OPTION_DISABLE_THUNK_EMULATION |
MEM_EXECUTE_OPTION_PERMANENT : 0);
static const BOOL is_win64 = (sizeof(void *) > sizeof(int));
static const char * const cpu_names[] = { "x86", "x86_64", "PowerPC", "ARM", "ARM64" };
static UINT process_error_mode;

View File

@ -99,8 +99,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(server);
#define SOCKETNAME "socket" /* name of the socket file */
#define LOCKNAME "lock" /* name of the lock file */
static const BOOL is_win64 = (sizeof(void *) > sizeof(int));
static const char *server_dir;
unsigned int server_cpus = 0;

View File

@ -41,6 +41,8 @@ static const enum cpu_type client_cpu = CPU_ARM64;
static const WORD current_machine = IMAGE_FILE_MACHINE_ARM64;
#endif
static const BOOL is_win64 = (sizeof(void *) > sizeof(int));
struct debug_info
{
unsigned int str_pos; /* current position in strings buffer */

View File

@ -141,7 +141,6 @@ static const BYTE VIRTUAL_Win32Flags[16] =
static struct wine_rb_tree views_tree;
static pthread_mutex_t virtual_mutex;
static const BOOL is_win64 = (sizeof(void *) > sizeof(int));
static const UINT page_shift = 12;
static const UINT_PTR page_mask = 0xfff;
static const UINT_PTR granularity_mask = 0xffff;