Browse Source

Include needed headers directly in water cpp files

tags/1.9.8
falkTX 7 years ago
parent
commit
4980966ba0
13 changed files with 40 additions and 30 deletions
  1. +2
    -0
      source/modules/water/containers/ArrayAllocationBase.h
  2. +12
    -0
      source/modules/water/files/File.cpp
  3. +2
    -0
      source/modules/water/maths/MathsFunctions.h
  4. +2
    -0
      source/modules/water/memory/Memory.h
  5. +2
    -0
      source/modules/water/midi/MidiBuffer.cpp
  6. +3
    -0
      source/modules/water/misc/Time.cpp
  7. +2
    -0
      source/modules/water/processors/AudioProcessor.h
  8. +2
    -0
      source/modules/water/text/CharPointer_UTF8.h
  9. +2
    -0
      source/modules/water/text/CharacterFunctions.cpp
  10. +3
    -0
      source/modules/water/text/String.cpp
  11. +2
    -0
      source/modules/water/text/StringPool.h
  12. +5
    -0
      source/modules/water/threads/ChildProcess.cpp
  13. +1
    -30
      source/modules/water/water.cpp

+ 2
- 0
source/modules/water/containers/ArrayAllocationBase.h View File

@@ -28,6 +28,8 @@
#include "../memory/HeapBlock.h"
#include "CarlaUtils.hpp"
namespace water {
//==============================================================================


+ 12
- 0
source/modules/water/files/File.cpp View File

@@ -34,6 +34,18 @@
#include "CarlaJuceUtils.hpp"
#ifndef CARLA_OS_WIN
# include <dlfcn.h>
# include <fcntl.h>
# include <pwd.h>
# include <sys/stat.h>
# ifdef CARLA_OS_MAC
# else
# include <dirent.h>
# include <fnmatch.h>
# endif
#endif
namespace water {
File::File (const String& fullPathName)


+ 2
- 0
source/modules/water/maths/MathsFunctions.h View File

@@ -28,6 +28,8 @@
#include "../water.h"
#include "CarlaUtils.hpp"
#include <algorithm>
namespace water {


+ 2
- 0
source/modules/water/memory/Memory.h View File

@@ -28,6 +28,8 @@
#include "../water.h"
#include <cstring>
namespace water {
//==============================================================================


+ 2
- 0
source/modules/water/midi/MidiBuffer.cpp View File

@@ -26,6 +26,8 @@
#include "MidiBuffer.h"
#include "MidiMessage.h"
#include "CarlaUtils.hpp"
namespace water {
namespace MidiBufferHelpers


+ 3
- 0
source/modules/water/misc/Time.cpp View File

@@ -25,6 +25,9 @@
#include "Time.h"
#include <ctime>
#include <sys/time.h>
namespace water {
namespace TimeHelpers


+ 2
- 0
source/modules/water/processors/AudioProcessor.h View File

@@ -29,6 +29,8 @@
#include "../text/String.h"
#include "../buffers/AudioSampleBuffer.h"
#include "CarlaMutex.hpp"
namespace water {
//==============================================================================


+ 2
- 0
source/modules/water/text/CharPointer_UTF8.h View File

@@ -29,6 +29,8 @@
#include "CharacterFunctions.h"
#include "../memory/Atomic.h"
#include "CarlaUtils.hpp"
namespace water {
//==============================================================================


+ 2
- 0
source/modules/water/text/CharacterFunctions.cpp View File

@@ -25,6 +25,8 @@
#include "CharacterFunctions.h"
#include <locale>
namespace water {
//==============================================================================


+ 3
- 0
source/modules/water/text/String.cpp View File

@@ -31,6 +31,9 @@
#include "CarlaJuceUtils.hpp"
#include <locale>
#include <iostream>
namespace water {
NewLine newLine;


+ 2
- 0
source/modules/water/text/StringPool.h View File

@@ -28,6 +28,8 @@
#include "../containers/Array.h"
#include "CarlaMutex.hpp"
namespace water {
//==============================================================================


+ 5
- 0
source/modules/water/threads/ChildProcess.cpp View File

@@ -28,6 +28,11 @@
#include "../misc/Time.h"
#include "../streams/MemoryOutputStream.h"
#ifndef CARLA_OS_WIN
# include <signal.h>
# include <sys/wait.h>
#endif
#define JUCE_USE_VFORK 1
namespace water {


+ 1
- 30
source/modules/water/water.cpp View File

@@ -16,34 +16,6 @@
* For a full copy of the GNU General Public License see the doc/GPL.txt file.
*/
#include "water.h"
#include "CarlaMutex.hpp"
#include <locale>
#include <ctime>
#include <cctype>
#include <cstdarg>
#include <iostream>
#include <sys/time.h>
#ifdef CARLA_OS_WIN
#include <mmsystem.h>
#include <shlobj.h>
#else
#include <dlfcn.h>
#include <fcntl.h>
#include <pwd.h>
#include <signal.h>
#include <sys/stat.h>
#include <sys/wait.h>
#ifdef CARLA_OS_MAC
#else
#include <dirent.h>
#include <fnmatch.h>
#endif
#endif
#include "misc/Result.h"
//==============================================================================
@@ -79,7 +51,6 @@ void* Process::getCurrentModuleInstanceHandle() noexcept
return currentModuleHandle;
}
#else
static Result getResultForErrno()
{
@@ -91,7 +62,7 @@ static void* fdToVoidPointer (int fd) noexcept { return (void*) (pointer_sized_
static int64 juce_fileSetPosition (void* handle, int64 pos)
{
if (handle != 0 && lseek (getFD (handle), pos, SEEK_SET) == pos)
if (handle != nullptr && lseek (getFD (handle), pos, SEEK_SET) == pos)
return pos;
return -1;


Loading…
Cancel
Save