diff options
author | couriersud <couriersud@gmx.org> | 2020-02-17 19:05:43 +0100 |
---|---|---|
committer | couriersud <couriersud@gmx.org> | 2020-02-17 22:08:56 +0100 |
commit | fbd9055a904e569da4c7bfe3360712af74b1fc5d (patch) | |
tree | 137d5a55f31bd4eed7d6b08a5f92354fc166fb1c /src/lib | |
parent | c66146b232e252ab990d79482cbe7c9757a7e92e (diff) |
Turn off alignas to please -Wattributes on arm. (nw)
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/netlist/plib/pconfig.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/netlist/plib/pconfig.h b/src/lib/netlist/plib/pconfig.h index 115eafd2196..ae739cfb976 100644 --- a/src/lib/netlist/plib/pconfig.h +++ b/src/lib/netlist/plib/pconfig.h @@ -81,9 +81,10 @@ #define PALIGNAS_CACHELINE() PALIGNAS(PALIGN_CACHELINE) #define PALIGNAS_VECTOROPT() PALIGNAS(PALIGN_VECTOROPT) -// Breaks mame build on windows due to -Wattribute +// FIXME: Breaks mame build on windows due to -Wattribute +// also triggers -Wattribute on ARM // FIXME: no error on cross-compile - need further checks -#if defined(_WIN32) && defined(__GNUC__) +#if defined(__GNUC__) && (defined(_WIN32) || defined(__arm__) || defined(__ARMEL__)) #define PALIGNAS(x) #else #define PALIGNAS(x) alignas(x) |