freebsd-ports/multimedia/aegisub/files/patch-src__video_out_gl.h
Thomas Zander d9deed77b9 - Update to upstream release 3.1.3
- Makefile cleanup / pet portlint
- Reduce available set of OPTIONS
  - DEBUG, GCOV, EFENCE not supported anymore
  - ASS and LUA now required by port

PR:		191375
Submitted by:	tkato432@yahoo.com
Approved by:	mentors (implicit)
2014-07-05 17:46:36 +00:00

34 lines
1.2 KiB
C++

--- src/video_out_gl.h.orig
+++ src/video_out_gl.h
@@ -23,6 +23,13 @@
#include <vector>
+#ifdef _LIBCPP_VERSION
+#define TO_STRING(x) std::to_string(x)
+#else
+#include <boost/lexical_cast.hpp>
+#define TO_STRING(x) boost::lexical_cast<std::string>(x)
+#endif
+
struct VideoFrame;
/// @class VideoOutGL
@@ -92,7 +99,7 @@
class VideoOutRenderException : public VideoOutException {
public:
VideoOutRenderException(const char *func, int err)
- : VideoOutException(std::string(func) + " failed with error code " + std::to_string(err))
+ : VideoOutException(std::string(func) + " failed with error code " + TO_STRING(err))
{ }
const char * GetName() const override { return "videoout/opengl/render"; }
Exception * Copy() const override { return new VideoOutRenderException(*this); }
@@ -103,7 +110,7 @@
class VideoOutInitException : public VideoOutException {
public:
VideoOutInitException(const char *func, int err)
- : VideoOutException(std::string(func) + " failed with error code " + std::to_string(err))
+ : VideoOutException(std::string(func) + " failed with error code " + TO_STRING(err))
{ }
VideoOutInitException(const char *err) : VideoOutException(err) { }
const char * GetName() const override { return "videoout/opengl/init"; }