Skip to content

Commit af32331

Browse files
committed
Move unused includes in header to cpp
1 parent 412db8c commit af32331

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

formats/jpeg.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#include "jpeg.h"
22

3+
#include <csetjmp> // for mozjpeg error handling
4+
#include <cstdio>
5+
6+
#include "../lib/mozjpeg/jpeglib.h"
37

48
const uint8_t Jpeg::header_magic[] = { 0xFF, 0xD8, 0xFF };
59
bool Jpeg::keep_exif_ = false;

formats/jpeg.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
#ifndef JPEG_H
22
#define JPEG_H
33

4-
#include <csetjmp> // for mozjpeg error handling
5-
#include <cstdio>
6-
7-
#ifdef _WIN32
8-
#define XMD_H // prevents mozjpeg to redefine INT32
9-
#endif
10-
#include "../lib/mozjpeg/jpeglib.h"
11-
124
#include "format.h"
135

146

formats/xml.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "xml.h"
22

33
#include <cstring>
4+
#include <functional>
45
#include <iostream>
56
#include <string>
67

formats/xml.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#ifndef XML_H
22
#define XML_H
33

4-
5-
#include <functional>
6-
74
#include "../lib/pugixml/pugixml.hpp"
85

96
#include "format.h"

0 commit comments

Comments
 (0)