Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 8e015a9

Browse files
kellycouchJuston Li
authored and
Juston Li
committed
Fixes for mingw build and general build
Signed-off-by: Couch, Kelly J <[email protected]>
1 parent 23e47ba commit 8e015a9

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

src/common/common_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#include <limits.h>
3737
#include "export_common.h"
3838

39-
#ifdef __WINDOWS__
39+
#ifdef __MSVC__
4040
#include <stdlib.h>
4141
#define PATH_MAX _MAX_PATH
4242
#endif

src/lib/nvm_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include <stddef.h>
3636
#include <limits.h>
3737

38-
#ifdef _WIN32
38+
#ifdef __MSVC__
3939
#include <stdlib.h>
4040
#define PATH_MAX _MAX_PATH
4141
#endif

src/lib/win_leg_adapter_shared.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@
3434
#define SRC_LIB_WIN_ADAPTER_H_
3535

3636
#include <windows.h>
37-
#include <winioctl.h>
3837
#include <PrivateIoctlDefinitions.h>
3938
#include <device_fw.h>
39+
#ifdef __MSVC__
40+
#include <winioctl.h>
41+
#endif
4042

4143
// SCSI port used as IOCTL target
4244
extern short g_scsi_port;

src/lib/win_scm2_adapter.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#include <Setupapi.h>
4141
#include <GuidDef.h>
4242
#include <Devpkey.h>
43+
#include <devpropdef.h>
4344
#include <objbase.h>
4445

4546
#define INITGUID

0 commit comments

Comments
 (0)