diff options
author | waker <wakeroid@gmail.com> | 2010-10-20 22:04:31 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2010-10-20 22:04:31 +0200 |
commit | 47f411b6964dc2f0af7d0f35ac0016204f1d9e96 (patch) | |
tree | b32de71a60fa8961b67f76bb8a4510f9cac9d47c /common.h | |
parent | 4886787e05f757a602f077e436a9b6f8b929ae3d (diff) |
added portable build mode (--enable-portable configure option)
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -18,12 +18,21 @@ #ifndef __COMMON_H #define __COMMON_H +#include <limits.h> +#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 |