Re: [FFmpeg-devel] [PATCH] configure: remove -std= from c++ compilation

2016-06-27 Thread Michael Niedermayer
On Sun, Jun 26, 2016 at 07:08:06PM -0400, Rick Kern wrote: > Pulling -std=c99 into CXXFLAGS from CFLAGS causes a compile error with c++ > files using clang on OS X. > Adding -std=c++98 unconditionally to CXXFLAGS will generate a compile error > on compilers that don't support the -std option. > It

[FFmpeg-devel] [PATCH] configure: remove -std= from c++ compilation

2016-06-26 Thread Rick Kern
Pulling -std=c99 into CXXFLAGS from CFLAGS causes a compile error with c++ files using clang on OS X. Adding -std=c++98 unconditionally to CXXFLAGS will generate a compile error on compilers that don't support the -std option. It works but is less readable if -std=c++98 is appended after -std=c99 w