diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-04-08 09:36:22 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-04-08 09:36:22 +0200 |
commit | c7fe9c4b835b98148df18a6f0c8c7ce6e5d397f0 (patch) | |
tree | 3b486972aab5cbb115e033907194008f1c2ddb67 /src | |
parent | 7ff29a665d490587204cfe97b80874907df6ffef (diff) |
some define renaming
Diffstat (limited to 'src')
-rw-r--r-- | src/gipfel.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gipfel.cxx b/src/gipfel.cxx index c7e07d2..d8ca0b9 100644 --- a/src/gipfel.cxx +++ b/src/gipfel.cxx @@ -40,12 +40,12 @@ #include "choose_hill.H" #include "../config.h" -#ifndef GIPFEL_DATADIR -#define GIPFEL_DATADIR "/usr/local/share" +#ifndef STD_DATADIR +#define STD_DATADIR "/usr/local/share" #endif +#define GIPFEL_DATADIR STD_DATADIR "/" PACKAGE_NAME #define DATAFILE "gipfel.dat" -#define DEFAULT_DATADIR GIPFEL_DATADIR "/" PACKAGE_NAME static char *run_dir = NULL; static char *img_file = NULL; @@ -580,7 +580,7 @@ int main(int argc, char** argv) { img_file = strdup(my_argv[0]); if (data_file == NULL) - data_file = file_installed_or_local(DEFAULT_DATADIR, "gipfel.dat"); + data_file = file_installed_or_local(GIPFEL_DATADIR, "gipfel.dat"); if (data_file == NULL || err) { usage(); |