Browse Source

Fix Windows build

tags/2018-04-16
falkTX 11 years ago
parent
commit
2f1f112811
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      libs/distrho/DistrhoUtils.hpp
  2. +1
    -1
      libs/distrho/src/DistrhoPluginVST.cpp

+ 2
- 2
libs/distrho/DistrhoUtils.hpp View File

@@ -144,7 +144,7 @@ void d_sleep(const uint secs)
DISTRHO_SAFE_ASSERT_RETURN(secs > 0,);

try {
#ifdef DISTRHO_OS_WIN
#ifdef DISTRHO_OS_WINDOWS
::Sleep(secs * 1000);
#else
::sleep(secs);
@@ -158,7 +158,7 @@ void d_msleep(const uint msecs)
DISTRHO_SAFE_ASSERT_RETURN(msecs > 0,);

try {
#ifdef DISTRHO_OS_WIN
#ifdef DISTRHO_OS_WINDOWS
::Sleep(msecs);
#else
::usleep(msecs * 1000);


+ 1
- 1
libs/distrho/src/DistrhoPluginVST.cpp View File

@@ -753,7 +753,7 @@ private:
fPlugin.setState(newKey, newValue);

// check if we want to save this key
if (! fPlugin.wantsStateKey(newKey))
if (! fPlugin.wantStateKey(newKey))
return;

// check if key already exists


Loading…
Cancel
Save