Browse Source

BSD: Fix a compilation error

v7.0.9
Tom Poole 2 years ago
parent
commit
f385e08b24
2 changed files with 9 additions and 3 deletions
  1. +8
    -2
      extras/Projucer/Source/BinaryData/juce_SimpleBinaryBuilder.cpp
  2. +1
    -1
      modules/juce_core/system/juce_TargetPlatform.h

+ 8
- 2
extras/Projucer/Source/BinaryData/juce_SimpleBinaryBuilder.cpp View File

@@ -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);
}


+ 1
- 1
modules/juce_core/system/juce_TargetPlatform.h View File

@@ -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…
Cancel
Save