From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS41665 78.109.16.0/20 X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00,RCVD_IN_MSPIKE_BL, RCVD_IN_MSPIKE_ZBI,RCVD_IN_XBL,SPF_FAIL,SPF_HELO_FAIL,TO_EQ_FM_DOM_SPF_FAIL shortcircuit=no autolearn=no autolearn_force=no version=3.4.0 Received: from 80x24.org (tornode.torreactor.ml [78.109.23.1]) by dcvr.yhbt.net (Postfix) with ESMTP id D48B320D0C for ; Tue, 6 Jun 2017 01:29:38 +0000 (UTC) From: Eric Wong To: spew@80x24.org Subject: [PATCH] configure.in: use AC_C_RESTRICT macro Date: Tue, 6 Jun 2017 01:29:21 +0000 Message-Id: <20170606012921.26806-1-e@80x24.org> List-Id: This improves portability to older systems while retaining the ability to take advantage of newer compilers. autoconf has had an AC_C_RESTRICT macro since 2.58, so our autoconf 2.67+ requirement already covers it. * configure.in: use AC_C_RESTRICT macro --- configure.in | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.in b/configure.in index c5132dc97f..df061a70b4 100644 --- a/configure.in +++ b/configure.in @@ -1434,6 +1434,7 @@ AC_C_CHAR_UNSIGNED AC_C_INLINE AC_C_VOLATILE AC_C_TYPEOF +AC_C_RESTRICT AS_CASE(":$ac_cv_c_const:$ac_cv_c_volatile:", [*:no:*], [AC_MSG_ERROR(ANSI C-conforming const and volatile are mandatory)]) -- EW