[vlc-commits] contrib/sidplay: fix openmode patch

Felix Paul Kühne git at videolan.org
Tue Jun 23 14:31:59 CEST 2015


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Jun 23 13:05:59 2015 +0200| [56b775d94fa351d797784f7f67a4bc78019111e9] | committer: Felix Paul Kühne

contrib/sidplay: fix openmode patch

_Ios_Openmode is an implementation detail of the GNU c++ stdlib whereas ios_base::openmode is the portable way to go

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=56b775d94fa351d797784f7f67a4bc78019111e9
---

 contrib/src/sidplay2/sidplay2-openmode.patch |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/contrib/src/sidplay2/sidplay2-openmode.patch b/contrib/src/sidplay2/sidplay2-openmode.patch
index 80a8e27..6e12d57 100644
--- a/contrib/src/sidplay2/sidplay2-openmode.patch
+++ b/contrib/src/sidplay2/sidplay2-openmode.patch
@@ -7,7 +7,7 @@
  
      // This sucks big time
 -    openmode createAtrr = std::ios::in;
-+    std::_Ios_Openmode createAtrr = std::ios::in;
++    std::ios_base::openmode createAtrr = std::ios::in;
  #ifdef HAVE_IOS_NOCREATE
      createAtrr |= std::ios::nocreate;
  #endif
@@ -16,7 +16,7 @@
      {
          // Open binary output file stream.
 -        openmode createAttr = std::ios::out;
-+        std::_Ios_Openmode createAttr = std::ios::out;
++        std::ios_base::openmode createAttr = std::ios::out;
  #if defined(HAVE_IOS_BIN)
          createAttr |= std::ios::bin;
  #else
@@ -25,7 +25,7 @@
      {
          // Open ASCII output file stream.
 -        openmode createAttr = std::ios::out;
-+        std::_Ios_Openmode createAttr = std::ios::out;
++        std::ios_base::openmode createAttr = std::ios::out;
          if ( overWriteFlag )
              createAttr |= std::ios::trunc;
          else
@@ -34,7 +34,7 @@
      {
          // Open binary output file stream.
 -        openmode createAttr = std::ios::out;
-+        std::_Ios_Openmode createAttr = std::ios::out;
++        std::ios_base::openmode createAttr = std::ios::out;
  #if defined(HAVE_IOS_BIN)
          createAttr |= std::ios::bin;
  #else



More information about the vlc-commits mailing list