Merge pull request #52 from tgtakaoka/macos-dylib-name

Fix MSP Debug Stack dynamic library name on macOS
This commit is contained in:
Daniel Beer 2018-04-04 12:26:22 +12:00 committed by GitHub
commit 061c7ac7da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ const struct tilib_api_table *tilib_api;
#if defined(__Windows__) || defined(__CYGWIN__) #if defined(__Windows__) || defined(__CYGWIN__)
static const char tilib_filename[] = "MSP430.DLL"; static const char tilib_filename[] = "MSP430.DLL";
#define TIDLL __stdcall #define TIDLL __stdcall
#elif defined(__APPLE__)
static const char tilib_filename[] = "libmsp430.dylib";
#define TIDLL
#else #else
static const char tilib_filename[] = "libmsp430.so"; static const char tilib_filename[] = "libmsp430.so";
#define TIDLL #define TIDLL