mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 07:43:54 +02:00
Fix build failure caused by undefined PATH_MAX.
Use PATH_MAX for PLATFORM_MAX_PATH only if it is defined and replace all instances of PATH_MAX by PLATFORM_MAX_PATH.
This commit is contained in:
@@ -69,6 +69,7 @@ class wxWindow;
|
||||
void QuitAudacity(bool bForce);
|
||||
void QuitAudacity();
|
||||
|
||||
// Please try to support unlimited path length instead of using PLATFORM_MAX_PATH!
|
||||
// Define one constant for maximum path value, so we don't have to do
|
||||
// platform-specific conditionals everywhere we want to check it.
|
||||
#define PLATFORM_MAX_PATH 260 // Play it safe for default, with same value as Windows' MAX_PATH.
|
||||
@@ -81,9 +82,12 @@ void QuitAudacity();
|
||||
|
||||
#ifdef __WXGTK__
|
||||
#include "configunix.h"
|
||||
// Some systems do not restrict the path length and therefore PATH_MAX is undefined
|
||||
#ifdef PATH_MAX
|
||||
#undef PLATFORM_MAX_PATH
|
||||
#define PLATFORM_MAX_PATH PATH_MAX
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __WXX11__
|
||||
#include "configunix.h"
|
||||
|
||||
Reference in New Issue
Block a user