1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-24 23:33:50 +02:00

Avoid multiple include of configunix.h

This commit is contained in:
James Crook
2018-04-06 10:14:47 +01:00
parent b24dae713b
commit 213daba23f
2 changed files with 14 additions and 3 deletions

View File

@@ -124,7 +124,11 @@ void QuitAudacity();
#endif
#ifdef __WXGTK__
#include "configunix.h"
#ifndef __CONFIG_UNIX_INCLUDED
#define __CONFIG_UNIX_INCLUDED
#include "configunix.h"
#endif
// Some systems do not restrict the path length and therefore PATH_MAX is undefined
#ifdef PATH_MAX
#undef PLATFORM_MAX_PATH
@@ -133,7 +137,10 @@ void QuitAudacity();
#endif
#ifdef __WXX11__
#include "configunix.h"
#ifndef __CONFIG_UNIX_INCLUDED
#define __CONFIG_UNIX_INCLUDED
#include "configunix.h"
#endif
// wxX11 should also get the platform-specific definition of PLATFORM_MAX_PATH, so do not declare here.
#endif