Changeset 429 for EcnlProtoTool/trunk/asp3_dcre/include/t_stddef.h
- Timestamp:
- Jul 3, 2020, 7:19:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/include/t_stddef.h
r321 r429 5 5 * Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory 6 6 * Toyohashi Univ. of Technology, JAPAN 7 * Copyright (C) 2004-201 5by Embedded and Real-Time Systems Laboratory7 * Copyright (C) 2004-2019 by Embedded and Real-Time Systems Laboratory 8 8 * Graduate School of Information Science, Nagoya Univ., JAPAN 9 9 * … … 113 113 #endif /* UINT64_MAX */ 114 114 typedef uint32_t PRCTIM; /* プロセッサ時間[NGKI0573]*/ 115 #ifndef USE_64BIT_HRTCNT 115 116 typedef uint32_t HRTCNT; /* 高分解能タイマのカウント値 */ 117 #else /* USE_64BIT_HRTCNT */ 118 #ifndef UINT64_MAX 119 #error 64bit data types are required when USE_64BIT_HRTCNT. 120 #endif 121 typedef uint64_t HRTCNT; /* 高分解能タイマのカウント値 */ 122 #endif /* USE_64BIT_HRTCNT */ 116 123 117 124 typedef TOPPERS_fp FP; /* プログラムの起動番地 */ … … 214 221 */ 215 222 #ifndef offsetof 216 #define offsetof(structure, field) ((uintptr_t) &(((structure *) 0)->field)) 223 #define offsetof(structure, field) \ 224 ((uintptr_t)(((char *) &(((structure *) 0)->field)) - ((char *) 0))) 217 225 #endif /* offsetof */ 218 226
Note:
See TracChangeset
for help on using the changeset viewer.