Skip to content

Commit

Permalink
Merged compat.h and helper.h
Browse files Browse the repository at this point in the history
  • Loading branch information
spoutn1k committed Jan 30, 2021
1 parent e347fc0 commit 126d8bc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
11 changes: 0 additions & 11 deletions src/compat.h

This file was deleted.

12 changes: 12 additions & 0 deletions src/helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ namespace fs = std::filesystem;
#define NOINLINE
#endif

#if defined(_OPENMP) && defined(_WINDOWS)
#define OMP_FOR_INDEX int
#else
#define OMP_FOR_INDEX std::vector<World::Coordinates>::size_type
#endif

#ifdef _WINDOWS
#define FSEEK fseek
#else
#define FSEEK fseeko
#endif

#define CHUNKSIZE 16
#define REGIONSIZE 32
#define MIN_TERRAIN_HEIGHT 0
Expand Down
2 changes: 1 addition & 1 deletion src/png.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef DRAW_PNG_H_
#define DRAW_PNG_H_

#include "./compat.h"
#include "./helper.h"
#include <filesystem>
#include <logger.hpp>
#include <map>
Expand Down
1 change: 0 additions & 1 deletion src/worldloader.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define WORLDLOADER_H_

#include "./colors.h"
#include "./compat.h"
#include "./helper.h"
#include <cstdlib>
#include <filesystem>
Expand Down

0 comments on commit 126d8bc

Please sign in to comment.