Commit Graph

8872 Commits

Author SHA1 Message Date
Rosen Penev
d874fc4dd8 use __has_include
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-29 12:21:47 -08:00
Rosen Penev
376638259d namespace enforce.hpp functions to Internal
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-29 11:14:59 -08:00
Rosen Penev
77834807c2 add support for gcc and clang 7
Uses std::experimental::filesystem

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-29 09:29:46 -08:00
Rosen Penev
e19ec79f98 safe_op: C++17 improvements
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-29 08:46:02 -08:00
Rosen Penev
54dd2b54a5 clang-tidy: add const to parameter
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-29 08:45:33 -08:00
Rosen Penev
805a1e5601 move inline to declaration
Fixes warning under Windows:

redeclared inline; 'dllimport' attribute ignored [-Wignored-attributes]

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-29 08:45:15 -08:00
Rosen Penev
2a690a135b use gnu_printf
Fixes warning under MinGW:

warning: unknown conversion type character 'z' in format [-Wformat=]

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-28 10:44:16 -08:00
Rosen Penev
a7a9835431 more std::find to Exiv2::find
The latter is simpler.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-27 07:47:18 -08:00
Rosen Penev
7fd7ee62a3 std::find to find template
std::find in C++20 can use ranges, which is equivalent here. Less error
prone.

Namespace is properly to avoid any conflicts with std::find or others

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-27 07:47:18 -08:00
Miloš Komarčević
c9f7a9f34e
Merge pull request #2479 from Exiv2/export_qtvid
Export QuickTimeVideo
2023-01-27 15:33:29 +01:00
Miloš Komarčević
0075ff631c
Merge pull request #2471 from Exiv2/pc_improve
Improve pkg-config file generation
2023-01-27 15:33:06 +01:00
Rosen Penev
0a5c1299e4 fix WIN32 macro
MinGW implements the _ version.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-27 06:19:10 -08:00
Rosen Penev
34318260ea fix C++20 deprecation warning
Capturing this with = is deprecated.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-27 06:07:42 -08:00
Rosen Penev
4a735ef046 xmpsdk: Fix dangling pointer warning
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-27 06:07:17 -08:00
Rosen Penev
db0da461ee static_cast
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-27 06:06:57 -08:00
Miloš Komarčević
4e8dca45a3 Export QuickTimeVideo 2023-01-27 12:34:43 +01:00
Miloš Komarčević
15f0119707 Switch to CMake provided FindIconv 2023-01-27 09:29:15 +01:00
Miloš Komarčević
63f9926378 Add static linkages to pkg-config file 2023-01-27 09:29:15 +01:00
Miloš Komarčević
50042e2ee2 Handle relative and absolute paths for pkg-config file 2023-01-27 09:29:15 +01:00
Rosen Penev
a87c59be51 remove unused variable
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-26 22:44:43 -08:00
Rosen Penev
6976aab5bd replace substr with resize/pop_back
Shorter and more efficient.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-26 22:44:43 -08:00
Rosen Penev
dd445e6c8d use find instead of count
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-26 22:44:43 -08:00
Rosen Penev
0169739a4e add missing const
Found with cppcheck

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-26 22:44:43 -08:00
Rosen Penev
aefd901bef fix copy constructors
clang-tidy couldn't transform these because of missing members

Found with cppcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-26 22:44:43 -08:00
Mohamed Ali Chebbi
b8f800ee4d add test/data for video support : format issue 2023-01-23 17:26:52 +01:00
Mohamed Ali Chebbi
bbb3f5afa8 add test/data for video support : gix issue in riff video and reference data test 2023-01-23 01:39:16 +01:00
Mohamed Ali Chebbi
82ea6bef52 add test/data for video support : make asfvideo more readable and fix some issues 2023-01-23 00:21:04 +01:00
Mohamed Ali Chebbi
5deee73141
Merge branch 'Exiv2:main' into TestVideoData 2023-01-21 00:15:10 +01:00
Miloš Komarčević
ed673727a9
Merge pull request #2468 from Exiv2/ci_windows_inih
CI: inih now available for Cygwin
2023-01-18 18:59:43 +01:00
Miloš Komarčević
fe327e136b CI: inih now available for Cygwin 2023-01-18 15:27:02 +01:00
Kevin Backhouse
d5afb08725
Merge pull request #2466 from kevinbackhouse/readExiv2Config-unused-param
Silence unused parameter warning when EXV_ENABLE_INIH is undefined
2023-01-17 09:30:04 +00:00
Kevin Backhouse
b55a0a564a
Silence unused parameter warning when EXV_ENABLE_INIH is undefined. 2023-01-17 08:51:12 +00:00
Kevin Backhouse
2b2111ff41
Merge pull request #2465 from kevinbackhouse/enable-inih
Add EXIV2_ENABLE_INIH flag to enable building without libinih
2023-01-16 16:45:20 +00:00
Kevin Backhouse
43c9ec0f50
Add EXIV2_ENABLE_INIH flag to enable building without libinih. 2023-01-16 10:33:25 +00:00
Kevin Backhouse
b8dda34648
Merge pull request #2457 from kevinbackhouse/inih-release-workflow
Add inih dependency to release workflow
2023-01-15 15:06:08 +00:00
Robin Mills
0107f3078a
Merge pull request #2461 from Exiv2/Fix_2460-delete-contrib-organize
Delete contrib/organize directory
2023-01-14 07:54:38 +00:00
Robin Mills
007137939e
Delete contrib/organize directory
#2460
2023-01-12 12:52:34 +00:00
Mohamed Ali Chebbi
1bd52de0a9 add test/data for video support : delete filename (unuseful) 2023-01-06 23:44:35 +01:00
Mohamed Ali Chebbi
c1d79c17f6 add test/data for video support 2023-01-06 23:17:43 +01:00
Kevin Backhouse
072c3ba31a
Add inih dependency 2023-01-06 12:16:00 +00:00
Rosen Penev
842ef05ee6 return nullptr instead of reset
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-05 23:29:31 -08:00
Rosen Penev
ce8691bba3 remove double libintl check
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-05 23:29:31 -08:00
Rosen Penev
d6e1b90a23 avoid reassignment
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-05 23:29:31 -08:00
Rosen Penev
dd3b3d4ff4 add const
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-05 23:29:31 -08:00
Rosen Penev
3e97850e97 manual default member init
clang-tidy suggests this but fails to apply it.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-05 23:29:31 -08:00
Rosen Penev
a84df11bbb wmain: build as c++ instead of c
Allows to keep exiv2 c++ only.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-04 14:17:47 -08:00
Alan01
ce2eb6daad Update da.po 2023-01-04 14:17:30 -08:00
Mohamed Ali Chebbi
1c764358bb
Encapsulate video support with compilation variable EXV_ENABLE_VIDEO (#2448)
* Encapsulate video support with compilation variable EXV_ENABLE_VIDEO

* Encapsulate video support with compilation variable EXV_ENABLE_VIDEO: add variable to unit test files

* Encapsulate video support with compilation variable EXV_ENABLE_VIDEO: encapsulate in makefile

* Encapsulate video support with compilation variable EXV_ENABLE_VIDEO: fix PR windows matrix

* Encapsulate video support with compilation variable EXV_ENABLE_VIDEO: activate only for concerned CI tests

* Encapsulate video support with compilation variable EXV_ENABLE_VIDEO: desable for linux release

* Encapsulate video support with compilation variable EXV_ENABLE_VIDEO: add to Fuzz PR
2023-01-04 13:01:34 +01:00
Kevin Backhouse
346e11493f
Merge pull request #2443 from kevinbackhouse/inih-from-library3
Remove libinih from codebase and add it as a dependency instead
2023-01-04 10:44:47 +00:00
Rosen Penev
b31b4abbaf fix __cplusplus check for MSVC
Because of an MSVC bug, __cplusplus is always 199711L. Use _MSVC_LANG
which gets set properly.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-01-04 01:40:27 -08:00