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

Commit

Permalink
Fixes for mingw build and general build
Browse files Browse the repository at this point in the history
Signed-off-by: Couch, Kelly J <[email protected]>
  • Loading branch information
kellycouch authored and Juston Li committed Jan 22, 2018
1 parent 23e47ba commit 8e015a9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/common/common_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <limits.h>
#include "export_common.h"

#ifdef __WINDOWS__
#ifdef __MSVC__
#include <stdlib.h>
#define PATH_MAX _MAX_PATH
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/lib/nvm_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <stddef.h>
#include <limits.h>

#ifdef _WIN32
#ifdef __MSVC__
#include <stdlib.h>
#define PATH_MAX _MAX_PATH
#endif
Expand Down
4 changes: 3 additions & 1 deletion src/lib/win_leg_adapter_shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@
#define SRC_LIB_WIN_ADAPTER_H_

#include <windows.h>
#include <winioctl.h>
#include <PrivateIoctlDefinitions.h>
#include <device_fw.h>
#ifdef __MSVC__
#include <winioctl.h>
#endif

// SCSI port used as IOCTL target
extern short g_scsi_port;
Expand Down
1 change: 1 addition & 0 deletions src/lib/win_scm2_adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <Setupapi.h>
#include <GuidDef.h>
#include <Devpkey.h>
#include <devpropdef.h>
#include <objbase.h>

#define INITGUID
Expand Down

0 comments on commit 8e015a9

Please sign in to comment.