xen/vmac: Delete STDINT block in vmac.h

Eclair reports that _MSC_VER is undefined, a MISRA Rule 20.9 violation.

This could be fixed by inserting an "&& defined(_MSC_VER)" clause, but the
whole block is entirely useless (it comments out the include of stdint) and
users pull in xen/types.h transitively.

Delete the whole block, and include xen/types.h to make it standalone.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Andrew Cooper committed 2026-05-19 22:29:31 +01:00
1 parent d6fb54fa71
commit 2b51691c8c
1 file changed
+2 -23
+2 -23
View File
@@ -1,6 +1,8 @@
#ifndef HEADER_VMAC_H
#define HEADER_VMAC_H
#include <xen/types.h>
/* --------------------------------------------------------------------------
* VMAC and VHASH Implementation by Ted Krovetz (tdk@acm.org) and Wei Dai.
* This implementation is herby placed in the public domain.
@@ -35,29 +37,6 @@
#define hz (400e6) mips
*/
/* --------------------------------------------------------------------------
* This implementation uses uint32_t and uint64_t as names for unsigned 32-
* and 64-bit integer types. These are defined in C99 stdint.h. The
* following may need adaptation if you are not running a C99 or
* Microsoft C environment.
* ----------------------------------------------------------------------- */
#define VMAC_USE_STDINT 1 /* Set to zero if system has no stdint.h */
#if VMAC_USE_STDINT && !_MSC_VER /* Try stdint.h if non-Microsoft */
#ifdef __cplusplus
#define __STDC_CONSTANT_MACROS
#endif
//#include <stdint.h>
#elif (_MSC_VER) /* Microsoft C does not have stdint.h */
typedef unsigned __int32 uint32_t;
typedef unsigned __int64 uint64_t;
#define UINT64_C(v) v ## UI64
#else /* Guess sensibly - may need adaptation */
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
#define UINT64_C(v) v ## ULL
#endif
/* --------------------------------------------------------------------------
* This implementation supports two free AES implementations: OpenSSL's and
* Paulo Barreto's. To use OpenSSL's, you will need to include the OpenSSL
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.