Browse Source

tags/2021-05-28
jules 17 years ago
parent
commit
f783d80743
4 changed files with 31 additions and 0 deletions
  1. +8
    -0
      juce_Config.h
  2. +6
    -0
      src/juce_appframework/gui/graphics/imaging/image_file_formats/juce_JPEGLoader.cpp
  3. +13
    -0
      src/juce_appframework/gui/graphics/imaging/image_file_formats/juce_PNGLoader.cpp
  4. +4
    -0
      src/juce_core/io/streams/juce_GZIPCompressorOutputStream.cpp

+ 8
- 0
juce_Config.h View File

@@ -200,6 +200,14 @@
#define JUCE_INCLUDE_OGGVORBIS_CODE 1
#endif

#ifndef JUCE_INCLUDE_PNGLIB_CODE
#define JUCE_INCLUDE_PNGLIB_CODE 1
#endif

#ifndef JUCE_INCLUDE_JPEGLIB_CODE
#define JUCE_INCLUDE_JPEGLIB_CODE 1
#endif

//=============================================================================
/** Enable this to add extra memory-leak info to the new and delete operators.



+ 6
- 0
src/juce_appframework/gui/graphics/imaging/image_file_formats/juce_JPEGLoader.cpp View File

@@ -37,6 +37,7 @@
namespace jpeglibNamespace
{
#if JUCE_INCLUDE_JPEGLIB_CODE
extern "C"
{
#define JPEG_INTERNALS
@@ -112,6 +113,11 @@ namespace jpeglibNamespace
#include "jpglib/jutils.c"
#include "jpglib/transupp.c"
}
#else
#define JPEG_INTERNALS
#undef FAR
#include <jpeglib.h>
#endif
}
#if JUCE_MSVC


+ 13
- 0
src/juce_appframework/gui/graphics/imaging/image_file_formats/juce_PNGLoader.cpp View File

@@ -38,15 +38,21 @@
namespace zlibNamespace
{
#if JUCE_INCLUDE_ZLIB_CODE
#undef OS_CODE
#undef fdopen
#include "../../../../../juce_core/io/streams/zlib/zlib.h"
#undef OS_CODE
#else
#include <zlib.h>
#endif
}
namespace pnglibNamespace
{
using namespace zlibNamespace;
#if JUCE_INCLUDE_PNGLIB_CODE
using ::malloc;
using ::free;
@@ -77,6 +83,13 @@ namespace pnglibNamespace
#include "pnglib/pngwtran.c"
#include "pnglib/pngwutil.c"
}
#else
#define PNG_INTERNAL
#define PNG_SETJMP_NOT_SUPPORTED
#include <png.h>
#include <pngconf.h>
#endif
}
#ifdef _MSC_VER


+ 4
- 0
src/juce_core/io/streams/juce_GZIPCompressorOutputStream.cpp View File

@@ -33,10 +33,14 @@
namespace zlibNamespace
{
#if JUCE_INCLUDE_ZLIB_CODE
#undef OS_CODE
#undef fdopen
#include "zlib/zlib.h"
#undef OS_CODE
#else
#include <zlib.h>
#endif
}
BEGIN_JUCE_NAMESPACE


Loading…
Cancel
Save