mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 20:22:46 +00:00
DM: use standard offsetof to avoid duplicate definition
Signed-off-by: Liu Shuo <shuo.a.liu@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
parent
ff33657234
commit
dacc571fc3
@ -30,6 +30,7 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <stddef.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -49,8 +50,6 @@
|
|||||||
# define RTC_DEBUG(format, ...) do { } while (0)
|
# define RTC_DEBUG(format, ...) do { } while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define offsetof(type, member) ((size_t)(&((type *)0)->member))
|
|
||||||
|
|
||||||
/* Register layout of the RTC */
|
/* Register layout of the RTC */
|
||||||
struct rtcdev {
|
struct rtcdev {
|
||||||
uint8_t sec;
|
uint8_t sec;
|
||||||
|
Loading…
Reference in New Issue
Block a user