changeset 1502:84922376d15c

Have OLDTOY emit (redundant) function prototype so single.sh can build OLDTOY standalone (if it has its own config symbol).
author Rob Landley <rob@landley.net>
date Sat, 27 Sep 2014 19:59:28 -0500
parents c51a4dbe5db7
children 96bdf979d9e6
files toys.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/toys.h	Sat Sep 27 19:58:18 2014 -0500
+++ b/toys.h	Sat Sep 27 19:59:28 2014 -0500
@@ -75,7 +75,7 @@
 // Get list of function prototypes for all enabled command_main() functions.
 
 #define NEWTOY(name, opts, flags) void name##_main(void);
-#define OLDTOY(name, oldname, opts, flags)
+#define OLDTOY(name, oldname, opts, flags) void oldname##_main(void);
 #include "generated/newtoys.h"
 #include "generated/oldtoys.h"
 #include "generated/flags.h"