vlc | branch: master | Rémi Denis-Courmont <r...@remlab.net> | Tue Sep 20 
12:44:30 2016 +0300| [606776eb3e5ee70ad58e3d550228467a50025a33] | committer: 
Rémi Denis-Courmont

m4: expand C++11 test

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=606776eb3e5ee70ad58e3d550228467a50025a33
---

 m4/stdcxx_11.m4 | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/m4/stdcxx_11.m4 b/m4/stdcxx_11.m4
index 2853545..98e7103 100644
--- a/m4/stdcxx_11.m4
+++ b/m4/stdcxx_11.m4
@@ -29,7 +29,7 @@
 #   Copyright (c) 2013 Roy Stogner <royst...@ices.utexas.edu>
 #   Copyright (c) 2014 Alexey Sokolov <soko...@google.com>
 #   Copyright (c) 2014, 2015 Google Inc.
-#   Copyright (c) 2015 VLC authors and VideoLAN
+#   Copyright (c) 2015, 2016 VLC authors and VideoLAN
 #
 #   Copying and distribution of this file, with or without modification, are
 #   permitted in any medium without royalty provided the copyright notice
@@ -84,7 +84,13 @@ m4_define([_AX_CXX_COMPILE_STDCXX_11_testbody], [[
     }
 
     #include <cinttypes>
-    constexpr uint64_t constantname = UINT64_C(0x100000000);
+    #include <climits>
+    #include <cstddef>
+
+    constexpr uint64_t constant_u64 = UINT64_C(0x100000000);
+    constexpr unsigned constant_lim = UINT_MAX;
+    const char *constant_fmt = "%" PRIu64, *constant_scn = "%" SCNu64;
+    constexpr size_t constant_align = alignof (max_align_t);
 ]])
 
 AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [dnl

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to