changeset 36015:73652b504ee1

Rephrase positively. Additionally, add #include for PATH_MAX.
author ib
date Sun, 31 Mar 2013 03:57:53 +0000
parents 5b85e4510b5f
children 7ee29db149cd
files gui/dialog/fileselect.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/fileselect.c	Sun Mar 31 03:32:17 2013 +0000
+++ b/gui/dialog/fileselect.c	Sun Mar 31 03:57:53 2013 +0000
@@ -48,10 +48,11 @@
 #include "mpcommon.h"
 #include "stream/stream.h"
 
-#ifndef __linux__
-#define get_current_dir_name()  getcwd(NULL, PATH_MAX)
+#ifdef __linux__
+char *get_current_dir_name(void);
 #else
-char *get_current_dir_name(void);
+#include <limits.h>
+#define get_current_dir_name() getcwd(NULL, PATH_MAX)
 #endif
 
 const char *fsSelectedFile = NULL;