X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=lzma%2Fapi%2Flzma.h;h=aa88e4243a29ada2db41eaeb1c966a5e65b2267c;hb=a949e03f1030e8bacbd4aa6ca7143439c1c1d33b;hp=ce675a7887164888acd53f376eeb8086874bffcc;hpb=a9e7811b3d308a6987227a6f30d739971b8d17c8;p=zpackage diff --git a/lzma/api/lzma.h b/lzma/api/lzma.h index ce675a7..aa88e42 100644 --- a/lzma/api/lzma.h +++ b/lzma/api/lzma.h @@ -219,7 +219,11 @@ */ #ifndef lzma_nothrow # if defined(__cplusplus) -# define lzma_nothrow throw() +# if __cplusplus >= 201103L +# define lzma_nothrow noexcept +# else +# define lzma_nothrow throw() +# endif # elif __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) # define lzma_nothrow __attribute__((__nothrow__)) # else