This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=a2f7f85d5b6353291b863cb855b748ada75cb566

commit a2f7f85d5b6353291b863cb855b748ada75cb566
Author: Guillem Jover <[email protected]>
AuthorDate: Thu Jul 25 04:41:59 2024 +0200

    build: Do not define macros for C/C++ standard level
    
    This is already tracked by pre-defined compiler macros. There is no need
    to try to set these ourselves.
---
 m4/dpkg-compiler.m4 | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/m4/dpkg-compiler.m4 b/m4/dpkg-compiler.m4
index 756af263a..86cf30f09 100644
--- a/m4/dpkg-compiler.m4
+++ b/m4/dpkg-compiler.m4
@@ -285,9 +285,7 @@ AC_DEFUN([DPKG_C_C99], [
       dpkg_cv_c99=1
     ])
   ])
-  AS_IF([test "x$dpkg_cv_c99" = "xyes"], [
-    AC_DEFINE([HAVE_C99], 1, [Define to 1 if the compiler supports C99.])
-  ], [
+  AS_IF([test "x$dpkg_cv_c99" != "xyes"], [
     AC_MSG_ERROR([unsupported required C99 extensions])
   ])
 ])# DPKG_C_C99
@@ -333,7 +331,4 @@ AC_DEFUN([DPKG_CXX_CXX11], [
       dpkg_cv_cxx11=yes
     ])
   ])
-  AS_IF([test "x$dpkg_cv_cxx11" = "xyes"], [
-    AC_DEFINE([HAVE_CXX11], 1, [Define to 1 if the compiler supports C++11.])
-  ])[]dnl
 ])# DPKG_CXX_CXX11

-- 
Dpkg.Org's dpkg

Reply via email to