diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-09-23 06:52:33 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-09-23 06:59:59 +0200 |
commit | 75a6584a43a9ab4170376d31fe4041bbaaa7f547 (patch) | |
tree | f8e7d7dede0664a23e7c559125ca3196241e2335 /cpukit/score/cpu/or1k/rtems/score/cpu.h | |
parent | 35edf82463f33d30e6bbbbbbafe3aadd80acffbb (diff) |
score: Fix C/C++ compatibility issue
Only use CPU_Per_CPU_control if it contains at least one filed. In GNU
C empty structures have a size of zero. In C++ structures have a
non-zero size. In case CPU_PER_CPU_CONTROL_SIZE is defined to zero,
then this structure is not used anymore.
Close #2789.
Diffstat (limited to 'cpukit/score/cpu/or1k/rtems/score/cpu.h')
-rw-r--r-- | cpukit/score/cpu/or1k/rtems/score/cpu.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/cpukit/score/cpu/or1k/rtems/score/cpu.h b/cpukit/score/cpu/or1k/rtems/score/cpu.h index 21cbb6d5ce..fb809f7f8d 100644 --- a/cpukit/score/cpu/or1k/rtems/score/cpu.h +++ b/cpukit/score/cpu/or1k/rtems/score/cpu.h @@ -818,9 +818,6 @@ void _CPU_Context_Initialize( #define CPU_TIMESTAMP_USE_INT64 TRUE #define CPU_TIMESTAMP_USE_INT64_INLINE FALSE -typedef struct { -/* There is no CPU specific per-CPU state */ -} CPU_Per_CPU_control; #endif /* ASM */ #define CPU_SIZEOF_POINTER 4 |