Skip to content

Commit

Permalink
include config.h first
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Dreik committed Oct 24, 2018
1 parent 5a3e0d1 commit d8117f7
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 5 deletions.
9 changes: 7 additions & 2 deletions Checksum.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@
Distributed under GPL v 2.0 or later, at your option.
See LICENSE for further details.
*/
#include "Checksum.hh"

#include "config.h"

//std
#include <array>
#include <cassert>
#include <cstdio>

#include <cstring> //for memcpy

//project
#include "Checksum.hh"

// this is a small function to print the checksum to stdout
static void
display_hex(std::size_t length, const void* data_)
Expand Down
3 changes: 3 additions & 0 deletions CmdlineParser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
See LICENSE for further details.
*/


#include "config.h"

// std
#include <cstdlib>
#include <cstring>
Expand Down
3 changes: 2 additions & 1 deletion Dirlist.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
See LICENSE for further details.
*/

#include "config.h"

// std
#include <cerrno>
#include <cstring>
Expand All @@ -19,7 +21,6 @@
// project
#include "Dirlist.hh"
#include "RdfindDebug.hh" //debug macros
#include "config.h"

static const int maxdepth = 50;

Expand Down
2 changes: 2 additions & 0 deletions EasyRandom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
See LICENSE for further details.
*/

#include "config.h"

// std
#include <algorithm>
#include <array>
Expand Down
3 changes: 2 additions & 1 deletion Fileinfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
See LICENSE for further details.
*/

#include "config.h"

// std
#include <cassert>
#include <cerrno> //for errno
Expand All @@ -19,7 +21,6 @@
#include "Checksum.hh" //checksum calculation
#include "Fileinfo.hh"
#include "UndoableUnlink.hh"
#include "config.h"

int
Fileinfo::fillwithbytes(enum readtobuffermode filltype,
Expand Down
6 changes: 6 additions & 0 deletions UndoableUnlink.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@
See LICENSE for further details.
*/


#include "config.h"

//std
#include <iostream>
#include <stdexcept>

//os
#include <unistd.h> //for unlink etc.

//project
#include "EasyRandom.hh"
#include "UndoableUnlink.hh"

Expand Down
3 changes: 2 additions & 1 deletion rdfind.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
See LICENSE for further details.
*/

#include "config.h" //header file from autoconf

// std
#include <algorithm>
#include <iostream>
Expand All @@ -16,7 +18,6 @@
#include "Fileinfo.hh" //file container
#include "RdfindDebug.hh" //debug macro
#include "Rdutil.hh" //to do some work
#include "config.h" //header file from autoconf

// global variables

Expand Down

0 comments on commit d8117f7

Please sign in to comment.