Refactor MAX_PATH to be in common.h

This commit is contained in:
Ethan Smith 2017-12-06 17:07:26 -08:00 committed by Richard Jenkins
parent 34e27a2408
commit 64f2778c10
5 changed files with 7 additions and 12 deletions

View File

@ -94,6 +94,7 @@ The following people are not part of the project team, but have been contributin
* Christian Friedrich Coors (ccoors)
* Robbin Voortman (rvoortman)
* (telk5093)
* Ethan Smith (ethanhs) - Refactoring.
## Toolchain
* (Balletie) - macOS

View File

@ -19,11 +19,6 @@
#include "common.h"
#include "core/Guard.hpp"
// Defining MAX_PATH temporarily until the paths below can be removed
// Saves us from importing system headers in a header file.
#ifndef MAX_PATH
#define MAX_PATH 260
#endif
#ifndef DISABLE_NETWORK
#include <openssl/evp.h>

View File

@ -54,6 +54,12 @@ typedef wchar_t utf16;
typedef utf16* utf16string;
#endif
// Defining MAX_PATH temporarily until the paths below can be removed
// Saves us from importing system headers in a header file.
#ifndef MAX_PATH
#define MAX_PATH 260
#endif
typedef uint32 codepoint_t;
typedef uint8 colour_t;

View File

@ -18,10 +18,6 @@
#include "../common.h"
#ifndef MAX_PATH
#define MAX_PATH 260
#endif
struct rct_object_entry;
typedef struct scenario_highscore_entry

View File

@ -31,9 +31,6 @@
#include "../core/Zip.h"
#include "TitleSequence.h"
#ifndef MAX_PATH
#define MAX_PATH 260
#endif
static std::vector<utf8 *> GetSaves(const utf8 * path);
static std::vector<utf8 *> GetSaves(IZipArchive * zip);