]> git.saurik.com Git - bison.git/commitdiff
Use b4_c_modern.
authorAkim Demaille <demaille@gostai.com>
Wed, 18 Feb 2009 16:54:39 +0000 (17:54 +0100)
committerAkim Demaille <demaille@gostai.com>
Thu, 19 Feb 2009 21:02:56 +0000 (22:02 +0100)
* data/c.m4 (b4_c_function_decl): Here.

ChangeLog
data/c.m4

index 9e7697886444a0314f20b3459cc208edb6efd991..ef97e9b1d96683e09e3034e31de22472ca4a0d8b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-02-19  Akim Demaille  <demaille@gostai.com>
+
+       Use b4_c_modern.
+       * data/c.m4 (b4_c_function_decl): Here.
+
 2009-02-19  Akim Demaille  <demaille@gostai.com>
 
        Comment changes.
index 030f6e4b90b284904a916b570fcaf021a9a02601..ffa4a84a6e751b34d5588e32a8a22234342ea17a 100644 (file)
--- a/data/c.m4
+++ b/data/c.m4
@@ -1,8 +1,8 @@
                                                             -*- Autoconf -*-
 
 # C M4 Macros for Bison.
-# Copyright (C) 2002, 2004, 2005, 2006, 2007, 2008 Free Software
-# Foundation, Inc.
+# Copyright (C) 2002, 2004, 2005, 2006, 2007, 2008, 2009
+# Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -342,7 +342,7 @@ m4_define([b4_c_knr_formal_decl],
 # -----------------------------------------------------------
 # Declare the function NAME.
 m4_define([b4_c_function_decl],
-[#if defined __STDC__ || defined __cplusplus
+[#if b4_c_modern
 b4_c_ansi_function_decl($@)
 #else
 $2 $1 ();