Browse Source

More msvc compat

Signed-off-by: falkTX <falktx@falktx.com>
pull/1775/head
falkTX 1 year ago
parent
commit
16e645c26c
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 5 additions and 0 deletions
  1. +3
    -0
      source/includes/CarlaDefines.h
  2. +2
    -0
      source/utils/CarlaMutex.hpp

+ 3
- 0
source/includes/CarlaDefines.h View File

@@ -324,5 +324,8 @@ typedef unsigned short int ushort;
typedef unsigned int uint;
typedef unsigned long int ulong;
typedef unsigned long long int ulonglong;
#ifdef _MSC_VER
typedef SSIZE_T ssize_t;
#endif

#endif /* CARLA_DEFINES_H_INCLUDED */

+ 2
- 0
source/utils/CarlaMutex.hpp View File

@@ -215,7 +215,9 @@ public:

pthread_mutexattr_t mattr;
pthread_mutexattr_init(&mattr);
#ifdef __GNUC__
pthread_mutexattr_setprotocol(&mattr, PTHREAD_PRIO_INHERIT);
#endif
pthread_mutexattr_settype(&mattr, PTHREAD_MUTEX_NORMAL);
pthread_mutex_init(&fMutex, &mattr);
pthread_mutexattr_destroy(&mattr);


Loading…
Cancel
Save