Skip to content

Commit

Permalink
Fix include of unistd.h on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Aug 27, 2024
1 parent 5186d50 commit 283f27f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
#include <stdexcept>
#include <vector>
#include <memory>
#include <unistd.h>
#include <algorithm>
#include <regex>
#include <array>

#ifdef _WIN32
#define SEPARATOR "\\"
#else
#include <unistd.h>
#define SEPARATOR "/"
#endif

Expand Down
5 changes: 4 additions & 1 deletion src/zimcheck/zimcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
* MA 02110-1301, USA.
*/

#include <unistd.h>
#include <zim/archive.h>
#include <getopt.h>
#include <iostream>
Expand All @@ -35,6 +34,10 @@
#include <unordered_map>
#include <cmath>

#ifndef _WIN32
#include <unistd.h>
#endif

#include "../progress.h"
#include "../version.h"
#include "../tools.h"
Expand Down

0 comments on commit 283f27f

Please sign in to comment.