diff options
Diffstat (limited to 'src/lib/netlist/plib/pconfig.h')
-rw-r--r-- | src/lib/netlist/plib/pconfig.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/netlist/plib/pconfig.h b/src/lib/netlist/plib/pconfig.h index 71a5f25e0e8..cc92a42c827 100644 --- a/src/lib/netlist/plib/pconfig.h +++ b/src/lib/netlist/plib/pconfig.h @@ -33,6 +33,20 @@ #define PHAS_INT128 (0) #endif +/* + * Standard alignment macros + */ + +#define PALIGNAS_CACHELINE() PALIGNAS(64) +#define PALIGNAS_VECTOROPT() PALIGNAS(64) + +/* Breaks mame build on windows due to -Wattribute */ +#if defined(_WIN32) && defined(__GNUC__) +#define PALIGNAS(x) +#else +#define PALIGNAS(x) alignas(x) +#endif + /*============================================================ * Check for CPP Version * |