From dad79cb4d2cca2231b598971328cf62a6ffdaf49 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Fri, 17 Apr 2015 09:42:06 +1000 Subject: [PATCH] Better way of setting default USE_OPENMP (nw) --- src/emu/netlist/nl_config.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/emu/netlist/nl_config.h b/src/emu/netlist/nl_config.h index c2ef152247d..f16eca5add4 100644 --- a/src/emu/netlist/nl_config.h +++ b/src/emu/netlist/nl_config.h @@ -8,7 +8,7 @@ #ifndef NLCONFIG_H_ #define NLCONFIG_H_ -/* FIXME: at some time, make it compile on it's own */ +/* FIXME: at some time, make it compile on its own */ #include "osdcore.h" #include "corealloc.h" @@ -39,7 +39,13 @@ // The following adds about 10% performance ... +#if !defined(USE_OPENMP) +#if defined(_OPENMP) #define USE_OPENMP (1) +#else // defined(_OPENMP) +#define USE_OPENMP (0) +#endif // defined(_OPENMP) +#endif // !defined(USE_OPENMP) // Use nano-second resolution - Sufficient for now #define NETLIST_INTERNAL_RES (U64(1000000000))