]> pd.if.org Git - zpackage/blobdiff - lzma/api/lzma.h
use lzma from xz 5.2.4
[zpackage] / lzma / api / lzma.h
index ce675a7887164888acd53f376eeb8086874bffcc..aa88e4243a29ada2db41eaeb1c966a5e65b2267c 100644 (file)
  */
 #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