From c7fe9c4b835b98148df18a6f0c8c7ce6e5d397f0 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Wed, 8 Apr 2009 09:36:22 +0200 Subject: some define renaming --- src/gipfel.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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(); -- cgit v1.2.3