|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 12/12] xen/vmac: Delete STDINT block in vmac.h
Eclair complains that _MSC_VER is undefined (a 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 the top of vmac.c pulls in xen/types.h specifically. Simply delete the block. No functional change. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- CC: Jan Beulich <JBeulich@xxxxxxxx> CC: Roger Pau Monné <roger.pau@xxxxxxxxxx> CC: Stefano Stabellini <sstabellini@xxxxxxxxxx> CC: Julien Grall <julien@xxxxxxx> CC: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx> CC: Bertrand Marquis <bertrand.marquis@xxxxxxx> CC: Michal Orzel <michal.orzel@xxxxxxx> CC: consulting@xxxxxxxxxxx <consulting@xxxxxxxxxxx> CC: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx> --- xen/include/crypto/vmac.h | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/xen/include/crypto/vmac.h b/xen/include/crypto/vmac.h index 7574c4a3f328..43fd288ae3bd 100644 --- a/xen/include/crypto/vmac.h +++ b/xen/include/crypto/vmac.h @@ -35,29 +35,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 -- 2.39.5
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |