1
From: Ben Hutchings <ben@decadent.org.uk>
2
Subject: Fix definition of oss_native_word for Linux
4
On x86_64, unsigned long long and unsigned long have the same size,
5
but Linux requires status flag variables to have type unsigned long.
6
The current definition results in warning such as:
8
build/core/oss_core.c: In function 'oss_fp_check':
9
build/core/oss_core.c:1862:3: warning: comparison of distinct pointer types lacks a cast [enabled by default]
12
--- a/kernel/OS/Linux/wrapper/wrap.h
13
+++ b/kernel/OS/Linux/wrapper/wrap.h
18
-#if defined(__x86_64__)
19
-typedef unsigned long long oss_native_word; /* Same as the address and status register size */
21
typedef unsigned long oss_native_word; /* Same as the address and status register size */
23
typedef long long oss_int64_t; /* Signed 64 bit integer */
24
typedef unsigned long long oss_uint64_t; /* Unsigned 64 bit integer */