From 3919b5e7cf4e0ae33730a1b2331945ad1306e8fe Mon Sep 17 00:00:00 2001
From: KO Myung-Hun <komh78@gmail.com>
Date: Mon, 7 Sep 2015 15:56:41 +0900
Subject: [PATCH] demux: adaptative: fix compilation on OS/2

atomic requires C++11. However, C++11 is disabled on OS/2 due tovbroken
headers. Enable C++11 always on OS/2.

-----
  CXX      demux/adaptative/plumbing/libadaptative_plugin_la-CommandsQueue.lo
In file included from f:/lang/gcc/usr/local492/include/c++/4.9.2/atomic:38:0,
                 from ../include/vlc_atomic.h:221,
                 from demux/adaptative/plumbing/CommandsQueue.hpp:29,
                 from demux/adaptative/plumbing/CommandsQueue.cpp:20:
f:/lang/gcc/usr/local492/include/c++/4.9.2/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
In file included from f:/lang/gcc/usr/local492/include/c++/4.9.2/atomic:41:0,
                 from ../include/vlc_atomic.h:221,
                 from demux/adaptative/plumbing/CommandsQueue.hpp:29,
                 from demux/adaptative/plumbing/CommandsQueue.cpp:20:
f:/lang/gcc/usr/local492/include/c++/4.9.2/bits/atomic_base.h:74:3: error: 'constexpr' does not name a type
   constexpr memory_order
   ^
...
-----
---
 extras/package/os2/configure.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extras/package/os2/configure.sh b/extras/package/os2/configure.sh
index 235d7c1..5e7f5c0 100644
--- a/extras/package/os2/configure.sh
+++ b/extras/package/os2/configure.sh
@@ -43,7 +43,7 @@ OPTIONS="
 
 export ARCHFLAGS=${ARCHFLAGS-"-march=i486"}
 export CFLAGS="${CFLAGS} ${ARCHFLAGS}"
-export CXXFLAGS="${CXXFLAGS} ${ARCHFLAGS}"
+export CXXFLAGS="${CXXFLAGS} ${ARCHFLAGS} -std=gnu++11"
 export BUILDCC="gcc -std=c99"
 
 sh "$(dirname $0)"/../../../configure ${OPTIONS} "$@"
-- 
2.5.2

