diff options
author | waker <wakeroid@gmail.com> | 2012-05-22 22:21:55 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-05-22 22:21:55 +0200 |
commit | df0232d67ee161abc1c1341856a2c5e60b9e568a (patch) | |
tree | 52ae43f2f5edf3f5df424117872f1b2e4890d6e5 /plugins/converter | |
parent | 8e34cdbf453a70e720913c6346ece19598c3ba54 (diff) |
implemented playlist saving as atomic operation; fixed few PATH_MAX definitions
Diffstat (limited to 'plugins/converter')
-rw-r--r-- | plugins/converter/converter.c | 10 | ||||
-rw-r--r-- | plugins/converter/convgui.c | 10 |
2 files changed, 12 insertions, 8 deletions
diff --git a/plugins/converter/converter.c b/plugins/converter/converter.c index ad68bab9..ed276f20 100644 --- a/plugins/converter/converter.c +++ b/plugins/converter/converter.c @@ -16,6 +16,12 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +# include "../../config.h" +#endif +#if HAVE_SYS_SYSLIMITS_H +#include <sys/syslimits.h> +#endif #include <stdlib.h> #include <string.h> #include <sys/types.h> @@ -36,10 +42,6 @@ }) #endif -#ifndef PATH_MAX -#define PATH_MAX 1024 /* max # of characters in a path name */ -#endif - #ifndef __linux__ #define O_LARGEFILE 0 #endif diff --git a/plugins/converter/convgui.c b/plugins/converter/convgui.c index 27517022..8054768b 100644 --- a/plugins/converter/convgui.c +++ b/plugins/converter/convgui.c @@ -16,6 +16,12 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +# include "../../config.h" +#endif +#if HAVE_SYS_SYSLIMITS_H +#include <sys/syslimits.h> +#endif #include <string.h> #include <stdlib.h> #include <assert.h> @@ -27,10 +33,6 @@ #include "interface.h" #include "../gtkui/gtkui_api.h" -#ifndef PATH_MAX -#define PATH_MAX 1024 /* max # of characters in a path name */ -#endif - DB_functions_t *deadbeef; ddb_converter_t *converter_plugin; |