Skip to content

Commit 497e0a2

Browse files
committed
more header reductions and forward declarations
Signed-off-by: Rosen Penev <[email protected]>
1 parent c38342f commit 497e0a2

24 files changed

+46
-36
lines changed

include/exiv2/basicio.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#ifndef EXIV2_BASICIO_HPP
44
#define EXIV2_BASICIO_HPP
55

6-
#include "config.h"
7-
86
// *****************************************************************************
97
#include "exiv2lib_export.h"
108

include/exiv2/bmffimage.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#ifndef EXIV2_BMFFIMAGE_HPP
44
#define EXIV2_BMFFIMAGE_HPP
55

6-
#include "config.h"
7-
86
// *****************************************************************************
97
#include "exiv2lib_export.h"
108

include/exiv2/exif.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
// *****************************************************************************
1414
#include "exiv2lib_export.h"
1515

16-
#include "config.h"
17-
1816
// included header files
1917
#include "config.h"
2018
#include "metadatum.hpp"

include/exiv2/image.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#ifndef EXIV2_IMAGE_HPP
44
#define EXIV2_IMAGE_HPP
55

6-
#include "config.h"
7-
86
// *****************************************************************************
97
#include "exiv2lib_export.h"
108

src/cr2header_int.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
#include "cr2header_int.hpp"
44

5+
#include "tags.hpp"
56
#include "tiffimage_int.hpp"
67
#include "types.hpp"
78

89
#include <algorithm>
910
#include <cstdint>
11+
#include <cstring>
1012

1113
namespace Exiv2::Internal {
1214
Cr2Header::Cr2Header(ByteOrder byteOrder) : TiffHeaderBase(42, 16, byteOrder, 0x00000010) {

src/crwimage_int.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
// *****************************************************************************
77
// included header files
8-
#include "tags.hpp"
98
#include "types.hpp"
109

1110
// + standard includes
@@ -18,6 +17,8 @@
1817
// *****************************************************************************
1918
// namespace extensions
2019
namespace Exiv2 {
20+
enum class IfdId : uint32_t;
21+
class ExifData;
2122
class Image;
2223

2324
namespace Internal {

src/fujimn_int.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// included header files
1111
#include "fujimn_int.hpp"
1212
#include "i18n.h" // NLS support.
13+
#include "tags.hpp"
1314
#include "tags_int.hpp"
1415
#include "types.hpp"
1516

src/image_int.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22

3-
#include "config.h"
4-
53
#include "image_int.hpp"
64

75
#include <cstddef>

src/jpgimage.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include "image_int.hpp"
1212
#include "jpgimage.hpp"
1313
#include "photoshop.hpp"
14-
#include "safe_op.hpp"
1514
#include "tags_int.hpp"
1615

1716
#include <array>

src/makernote_int.hpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55

66
// *****************************************************************************
77
// included header files
8-
#include "tags.hpp"
8+
#include "types.hpp"
99

1010
#include <memory>
1111

1212
// namespace extensions
13-
namespace Exiv2::Internal {
13+
namespace Exiv2 {
14+
enum class IfdId : uint32_t;
15+
namespace Internal {
1416
class IoWrapper;
1517
class TiffComponent;
1618
// *****************************************************************************
@@ -673,6 +675,7 @@ int nikonSelector(uint16_t tag, const byte* pData, size_t size, TiffComponent* p
673675
*/
674676
DataBuf nikonCrypt(uint16_t tag, const byte* pData, size_t size, TiffComponent* pRoot);
675677

676-
} // namespace Exiv2::Internal
678+
} // namespace Internal
679+
} // namespace Exiv2
677680

678681
#endif // EXIV2_MAKERNOTE_INT_HPP

0 commit comments

Comments
 (0)