summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.d.in4
-rwxr-xr-xsrc/helloworld.d3
2 files changed, 4 insertions, 3 deletions
diff --git a/config.d.in b/config.d.in
index 8d67a4e..0e84400 100644
--- a/config.d.in
+++ b/config.d.in
@@ -1,7 +1,7 @@
/* @configure_input@ */
-module system.config;
+module config;
-typedef const char[] s;
+alias char[] s;
s PACKAGE = "@PACKAGE@";
s PACKAGE_NAME = "@PACKAGE_NAME@";
diff --git a/src/helloworld.d b/src/helloworld.d
index df15b0b..e1113cc 100755
--- a/src/helloworld.d
+++ b/src/helloworld.d
@@ -1,8 +1,9 @@
+import config;
import std.stdio;
void main(char[][] args)
{
- writefln("Hello World, Reloaded");
+ writefln("Hello World, Version: " ~ config.VERSION);
// auto type inference and built-in foreach
foreach (argc, argv; args)