Skip to content

Commit

Permalink
DelayLoadHelper, svrplus: #include "stdboolx.h"
Browse files Browse the repository at this point in the history
  • Loading branch information
GerbilSoft committed Jan 14, 2020
1 parent 841965f commit b09471a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
12 changes: 2 additions & 10 deletions src/libwin32common/DelayLoadHelper.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,8 @@
// C includes.
#include <stdlib.h>

// TODO: Move to our own stdboolx.h file.
#ifndef __cplusplus
# if defined(_MSC_VER) && _MSC_VER >= 1800
# include <stdbool.h>
# else
typedef unsigned char bool;
# define true 1
# define false 0
# endif
#endif /* __cplusplus */
// stdbool
#include "stdboolx.h"

// ImageBase for GetModuleFileName().
// Reference: https://blogs.msdn.microsoft.com/oldnewthing/20041025-00/?p=37483
Expand Down
14 changes: 3 additions & 11 deletions src/svrplus/svrplus.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
// MSVCRT-specific
#include <process.h>

// stdbool
#include "stdboolx.h"

// libwin32common
#include "libwin32common/RpWin32_sdk.h"
#include "libwin32common/secoptions.h"
Expand Down Expand Up @@ -50,17 +53,6 @@
((int)(((sizeof(x) / sizeof(x[0]))) / \
(size_t)(!(sizeof(x) % sizeof(x[0])))))

// TODO: Move to our own stdboolx.h file.
#ifndef __cplusplus
# if defined(_MSC_VER) && _MSC_VER >= 1800
# include <stdbool.h>
# else
typedef unsigned char bool;
# define true 1
# define false 0
# endif
#endif /* __cplusplus */

// File paths
static const TCHAR str_rp32path[] = _T("i386\\rom-properties.dll");
static const TCHAR str_rp64path[] = _T("amd64\\rom-properties.dll");
Expand Down

0 comments on commit b09471a

Please sign in to comment.