Skip to content

Commit

Permalink
Move unused includes in header to cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
JayXon committed Mar 28, 2016
1 parent 412db8c commit af32331
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
4 changes: 4 additions & 0 deletions formats/jpeg.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#include "jpeg.h"

#include <csetjmp> // for mozjpeg error handling
#include <cstdio>

#include "../lib/mozjpeg/jpeglib.h"

const uint8_t Jpeg::header_magic[] = { 0xFF, 0xD8, 0xFF };
bool Jpeg::keep_exif_ = false;
Expand Down
8 changes: 0 additions & 8 deletions formats/jpeg.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
#ifndef JPEG_H
#define JPEG_H

#include <csetjmp> // for mozjpeg error handling
#include <cstdio>

#ifdef _WIN32
#define XMD_H // prevents mozjpeg to redefine INT32
#endif
#include "../lib/mozjpeg/jpeglib.h"

#include "format.h"


Expand Down
1 change: 1 addition & 0 deletions formats/xml.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "xml.h"

#include <cstring>
#include <functional>
#include <iostream>
#include <string>

Expand Down
3 changes: 0 additions & 3 deletions formats/xml.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#ifndef XML_H
#define XML_H


#include <functional>

#include "../lib/pugixml/pugixml.hpp"

#include "format.h"
Expand Down

0 comments on commit af32331

Please sign in to comment.