Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jun 2010 21:46:46 +0000 (UTC)
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r209072 - head/usr.sbin/sysinstall
Message-ID:  <201006112146.o5BLkkor098925@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cperciva
Date: Fri Jun 11 21:46:45 2010
New Revision: 209072
URL: http://svn.freebsd.org/changeset/base/209072

Log:
  Clean up code by removing pre-C99 struct hack preprocessor magic.
  
  Approved by:	randi (maintainer)

Modified:
  head/usr.sbin/sysinstall/sysinstall.h

Modified: head/usr.sbin/sysinstall/sysinstall.h
==============================================================================
--- head/usr.sbin/sysinstall/sysinstall.h	Fri Jun 11 21:35:19 2010	(r209071)
+++ head/usr.sbin/sysinstall/sysinstall.h	Fri Jun 11 21:46:45 2010	(r209072)
@@ -228,13 +228,7 @@ typedef struct _dmenu {
     char *prompt;			/* Our prompt			*/
     char *helpline;			/* Line of help at bottom	*/
     char *helpfile;			/* Help file for "F1"		*/
-#if (__STDC_VERSION__ >= 199901L) || (__GNUC__ >= 3) 
     dialogMenuItem items[];		/* Array of menu items		*/
-#elif __GNUC__
-    dialogMenuItem items[0];		/* Array of menu items		*/
-#else
-#error "Create hack for C89 and K&R compilers."
-#endif
 } DMenu;
 
 /* An rc.conf variable */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006112146.o5BLkkor098925>