diff --git a/core/posix/defines.h b/core/posix/defines.h index a5d772b47..1831ce6f1 100644 --- a/core/posix/defines.h +++ b/core/posix/defines.h @@ -21,6 +21,7 @@ typedef uint64_t __uint64; #define NO_SPELLCHECKER #define NO_FEX +#define NO_PRS #if defined(HAVE_LIBAVCODEC) && defined(HAVE_LIBAVFORMAT) #define USE_LAVC diff --git a/core/subtitle_format.cpp b/core/subtitle_format.cpp index 661e27263..52e6e64b1 100644 --- a/core/subtitle_format.cpp +++ b/core/subtitle_format.cpp @@ -130,7 +130,9 @@ void SubtitleFormat::LoadFormats () { new ASSSubtitleFormat(); new SRTSubtitleFormat(); new TXTSubtitleFormat(); +#ifndef NO_PRS new PRSSubtitleFormat(); +#endif } loaded = true; } diff --git a/core/subtitle_format_prs.cpp b/core/subtitle_format_prs.cpp index 2fde68788..c7809950c 100644 --- a/core/subtitle_format_prs.cpp +++ b/core/subtitle_format_prs.cpp @@ -34,6 +34,8 @@ // +#ifndef NO_PRS + /////////// // Headers #include @@ -775,3 +777,5 @@ wxImage PRSSubtitleFormat::SubImageWithAlpha (wxImage &source,const wxRect &rect return image; } + +#endif /* NO_PRS */