Skip to content

Commit

Permalink
- Init exclusive opening mode to false
Browse files Browse the repository at this point in the history
- Remove unneded definitions on Linux as they could conflict with other
libraries (for e.g. QThread in Qt5)
  • Loading branch information
martonmiklos committed Dec 12, 2024
1 parent 3ea476c commit b8a42db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion src/common/stlink_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class StlinkDevice
STLinkInterface *m_pStlinkInterface;

// Mode for device opening: shared or exclusive
bool m_bOpenExclusive;
bool m_bOpenExclusive = false;

#ifdef USING_ERRORLOG
// Error log management
Expand Down
13 changes: 0 additions & 13 deletions src/common/stlink_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,6 @@ typedef unsigned int uint32_t;

#define EXPORTED_API __attribute__((visibility("default")))
#define MAX_PATH PATH_MAX
#define HANDLE void *
#define PHANDLE void **
#define PVOID void *
#define BYTE unsigned char
#define CHAR char
#define TCHAR char
#define WORD unsigned short // unsigned 16
#define DWORD unsigned int // unsigned 32 bits
#define LONG \
int // int for signed 32 bits; Note that "long" is signed 32 bits on
// Windows, signed 64 bits on Linux/MacOS => dangerous
#define LPSTR char *
#define INVALID_HANDLE_VALUE 0xFFFFFFFF
typedef enum { FALSE = 0, TRUE } BOOL;
#endif // WIN32

Expand Down

0 comments on commit b8a42db

Please sign in to comment.