diff --git a/pngpriv.h b/pngpriv.h index 2369b8e29..0b13740b0 100644 --- a/pngpriv.h +++ b/pngpriv.h @@ -466,10 +466,12 @@ static_cast(static_cast(value)) #else # define png_voidcast(type, value) (value) -# if defined( _WIN64 ) && ! defined( __GNUC__ ) - typedef unsigned __int64 png_ptruint; -# elif defined( _WIN64 ) - typedef unsigned long long png_ptruint; +# ifdef _WIN64 +# ifdef __GNUC__ + typedef unsigned long long png_ptruint; +# else + typedef unsigned __int64 png_ptruint; +# endif # else typedef unsigned long png_ptruint; # endif