Skip to content

Commit

Permalink
no need to check for _WIN64
Browse files Browse the repository at this point in the history
  • Loading branch information
pionere committed Sep 20, 2023
1 parent 8a7d112 commit c4dc754
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Source/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Implementation of routines for initializing the environment, disable screen saver, load MPQ.
*/
//#if defined(_WIN64) || defined(_WIN32)
//#if defined(_WIN32)
//#include <find_steam_game.h>
//#endif

Expand Down Expand Up @@ -101,7 +101,7 @@ void InitArchives()
return;
#endif
HANDLE diabdat_mpqs[NUM_MPQS];
/*#elif defined(_WIN64) || defined(_WIN32)
/*#elif defined(_WIN32)
char gogpath[_FSG_PATH_MAX];
fsg_get_gog_game_path(gogpath, "1412601690");
if (strlen(gogpath) > 0) {
Expand Down
2 changes: 1 addition & 1 deletion Source/utils/console.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#if defined(_WIN64) || defined(_WIN32)
#if defined(_WIN32)
// Suppress definitions of `min` and `max` macros by <windows.h>:
#define NOMINMAX 1
#define WIN32_LEAN_AND_MEAN
Expand Down
6 changes: 3 additions & 3 deletions Source/utils/file_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include "log.h"

#if defined(_WIN64) || defined(_WIN32)
#if defined(_WIN32)
// Suppress definitions of `min` and `max` macros by <windows.h>:
#define NOMINMAX 1
#define WIN32_LEAN_AND_MEAN
Expand Down Expand Up @@ -56,7 +56,7 @@ inline bool FileExists(const char* path)

inline bool GetFileSize(const char* path, std::uintmax_t* size)
{
#if defined(_WIN64) || defined(_WIN32)
#if defined(_WIN32)
WIN32_FILE_ATTRIBUTE_DATA attr;
/*int path_utf16_size = MultiByteToWideChar(CP_UTF8, 0, path, -1, NULL, 0);
wchar_t *path_utf16 = new wchar_t[path_utf16_size];
Expand Down Expand Up @@ -95,7 +95,7 @@ inline bool WriteFile(const void* data, size_t size, FILE* f)

inline bool ResizeFile(const char* path, std::uintmax_t size)
{
#if defined(_WIN64) || defined(_WIN32)
#if defined(_WIN32)
LARGE_INTEGER lisize;
lisize.QuadPart = static_cast<LONGLONG>(size);
if (lisize.QuadPart < 0) {
Expand Down

0 comments on commit c4dc754

Please sign in to comment.