Jan Palus [Thu, 17 Jun 2021 09:14:14 +0000 (11:14 +0200)]
avoid name conflict with C++17; rel 2
C++17 introduced new symbol "clamp" which conflicts with macro in vsxu's
public header. since projects might request C++17 explicitly or
implicitly (GCC 11 defaults to C++17) disable macro if compiled with
this or higher standard. in case there are users of clamp macro, it
should be either changed to std::clamp or equivalent CLAMP macro. note
there's no need to update vsxu codebase since it uses C++11.
fixes vlc build error:
/usr/include/c++/11.1.0/bits/algorithmfwd.h:229:55: error: macro "clamp" passed 4 arguments, but takes just 3
229 | clamp(const _Tp&, const _Tp&, const _Tp&, _Compare);
| ^
In file included from /usr/include/vsxu/common/vsx_argvector.h:37,
from /usr/include/vsxu/engine/audiovisual/vsx_state_manager.h:27,
from visualization/vsxu.cpp:45:
/usr/include/vsxu/common/math/vsx_math.h:53: note: macro "clamp" defined here
53 | #define clamp(N, L, U) (MAX(MIN((N), (U)), (L)))
|
In file included from /usr/include/c++/11.1.0/functional:65,
from /usr/include/vsxu/common/tools/vsx_thread_pool.h:10,
from /usr/include/vsxu/common/filesystem/archive/vsx_filesystem_archive_reader.h:7,
from /usr/include/vsxu/common/filesystem/vsx_filesystem.h:9,
from /usr/include/vsxu/common/string/vsx_string_helper.h:7,
from /usr/include/vsxu/common/vsx_argvector.h:50,
from /usr/include/vsxu/engine/audiovisual/vsx_state_manager.h:27,
from visualization/vsxu.cpp:45:
Jakub Bogusz [Sun, 5 Apr 2020 14:29:25 +0000 (16:29 +0200)]
- updated to 0.6.3 (note: some library names changed, .pc name changed)
- updated glfw3,desktop,icons,system-ftgl patches
- added system-lodepng patch, use system lodepng library
- added system-lzham-lzma patch, use system lzham and lzma SDK libraries
- added system-cal3d patch, use system cal3d library
- added format64 patch (fix 64-bit format strings on x32)
- added pc patch (fix libraries and included in .pc file)