You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-games/vamos/files/vamos-0.8.2-fix-c++14.patch

26 lines
554 B

Fix building in C++14 mode.
See also: https://bugs.gentoo.org/show_bug.cgi?id=600774
--- a/media/Ac3d.cc
+++ b/media/Ac3d.cc
@@ -892,7 +892,7 @@
m_rotation (rotation)
{
std::ifstream is (m_file.c_str ());
- if (is == 0)
+ if (!is)
{
throw No_File (m_file);
}
--- a/media/XML_Parser.cc
+++ b/media/XML_Parser.cc
@@ -391,7 +391,7 @@
{
m_file = file;
mp_stream = new std::ifstream (file.c_str ());
- if ((mp_stream == 0) || (*mp_stream == 0))
+ if ((mp_stream == NULL) || (!(*mp_stream)))
{
throw No_XML_File (m_file);
}