mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
BSD: Fix a compilation error
This commit is contained in:
parent
c23eab7126
commit
f385e08b24
2 changed files with 9 additions and 3 deletions
|
|
@ -81,10 +81,16 @@ struct FileHelpers
|
|||
|
||||
static bool isDirectory (const std::string& path)
|
||||
{
|
||||
struct stat64 info;
|
||||
#if defined (__FreeBSD__) || defined (__OpenBSD__)
|
||||
#define JUCE_STAT stat
|
||||
#else
|
||||
#define JUCE_STAT stat64
|
||||
#endif
|
||||
|
||||
struct JUCE_STAT info;
|
||||
|
||||
return ! path.empty()
|
||||
&& stat64 (path.c_str(), &info) == 0
|
||||
&& JUCE_STAT (path.c_str(), &info) == 0
|
||||
&& ((info.st_mode & S_IFDIR) != 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@
|
|||
#elif defined (JUCE_ANDROID)
|
||||
#undef JUCE_ANDROID
|
||||
#define JUCE_ANDROID 1
|
||||
#elif defined (__FreeBSD__) || (__OpenBSD__)
|
||||
#elif defined (__FreeBSD__) || defined (__OpenBSD__)
|
||||
#define JUCE_BSD 1
|
||||
#elif defined (LINUX) || defined (__linux__)
|
||||
#define JUCE_LINUX 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue