X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fstructure%2FSGAtomic.hxx;h=081a4906cd8c1c4990bcea1707e484e6479a05f6;hb=f3c131ffaf04d8e04595c1271f8a70c8a9d89f5f;hp=a7977fc31408483332cb004c026a59bd6cbb2d3c;hpb=9cbbe5559844317f44744788ddb308101a1e75e9;p=simgear.git diff --git a/simgear/structure/SGAtomic.hxx b/simgear/structure/SGAtomic.hxx index a7977fc3..081a4906 100644 --- a/simgear/structure/SGAtomic.hxx +++ b/simgear/structure/SGAtomic.hxx @@ -21,14 +21,14 @@ #ifndef SGAtomic_HXX #define SGAtomic_HXX -#if defined(__GNUC__) && (4 <= __GNUC__) && (1 <= __GNUC_MINOR__) \ +#if defined(__GNUC__) && ((4 < __GNUC__)||(4 == __GNUC__ && 1 <= __GNUC_MINOR__)) \ && (defined(__i386__) || defined(__x86_64__)) // No need to include something. Is a Compiler API ... # define SGATOMIC_USE_GCC4_BUILTINS #elif defined(__sgi) && defined(_COMPILER_VERSION) && (_COMPILER_VERSION>=730) // No need to include something. Is a Compiler API ... # define SGATOMIC_USE_MIPSPRO_BUILTINS -#elif defined(WIN32) && !defined ( __CYGWIN__ ) +#elif defined(_WIN32) # include # define SGATOMIC_USE_WIN32_INTERLOCKED #else