From 47f411b6964dc2f0af7d0f35ac0016204f1d9e96 Mon Sep 17 00:00:00 2001 From: waker Date: Wed, 20 Oct 2010 22:04:31 +0200 Subject: added portable build mode (--enable-portable configure option) --- common.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index dfecb27a..fd270c3e 100644 --- a/common.h +++ b/common.h @@ -18,12 +18,21 @@ #ifndef __COMMON_H #define __COMMON_H +#include +#ifndef PATH_MAX +#define PATH_MAX 1024 /* max # of characters in a path name */ +#endif + #define min(x,y) ((x)<(y)?(x):(y)) #define max(x,y) ((x)>(y)?(x):(y)) // those are defined in main.c -extern char confdir[1024]; // $HOME/.config -extern char dbconfdir[1024]; // $HOME/.config/deadbeef -extern char sessfile[1024]; // $HOME/.config/deadbeef/session +extern char confdir[PATH_MAX]; // $HOME/.config +extern char dbconfdir[PATH_MAX]; // $HOME/.config/deadbeef +extern char dbinstalldir[PATH_MAX]; // see deadbeef->get_prefix +extern char dbdocdir[PATH_MAX]; // see deadbeef->get_doc_dir +extern char dbplugindir[PATH_MAX]; // see deadbeef->get_plugin_dir +extern char dbpixmapdir[PATH_MAX]; // see deadbeef->get_pixmap_dir + #endif // __COMMON_H -- cgit v1.2.3