]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkUtilities.cxx
Bug fix on windows
[bbtk.git] / kernel / src / bbtkUtilities.cxx
index 21fa9479f3ceb892e86e48b51a177caa9a57d885..7f8ed76c1e9bcd6a384edc3af0e72710cc03b07e 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkUtilities.cxx,v $
   Language:  C++
-  Date:      $Date: 2009/01/27 14:22:57 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2009/01/28 11:54:04 $
+  Version:   $Revision: 1.12 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
 #include "bbtkUtilities.h"
 #include "bbtkMessageManager.h"
 
+#if defined(MACOSX) // assume this is OSX 
+# include <sys/param.h>
+# include <mach-o/dyld.h> // _NSGetExecutablePath : must add -framework CoreFoundation to link line 
+# include <string.h>
+# ifndef PATH_MAX
+#  define PATH_MAX MAXPATHLEN
+# endif
+#endif // MACOSX
+
+#ifndef PATH_MAX // If not defined yet : do it 
+#  define PATH_MAX 2048
+#endif 
 
 namespace bbtk
 {