Skip to content

Commit 56a7148

Browse files
committed
ACMStream is windows-specific only
1 parent 36dfb66 commit 56a7148

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

include/private/mm/ACMStream.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/>
3-
* (C) 2020 Vladimir Sadovnikov <[email protected]>
2+
* Copyright (C) 2024 Linux Studio Plugins Project <https://lsp-plug.in/>
3+
* (C) 2024 Vladimir Sadovnikov <[email protected]>
44
*
55
* This file is part of lsp-runtime-lib
66
* Created on: 24 апр. 2020 г.
@@ -24,9 +24,10 @@
2424

2525
#include <lsp-plug.in/runtime/version.h>
2626

27-
#ifndef USE_LIBSNDFILE
28-
2927
#include <lsp-plug.in/common/types.h>
28+
29+
#ifdef PLATFORM_WINDOWS
30+
3031
#include <lsp-plug.in/common/status.h>
3132
#include <lsp-plug.in/lltl/darray.h>
3233
#include <lsp-plug.in/lltl/parray.h>
@@ -197,6 +198,6 @@ namespace lsp
197198
} /* namespace mm */
198199
} /* namespace lsp */
199200

200-
#endif /* USE_LIBSNDFILE */
201+
#endif /* PLATFORM_WINDOWS */
201202

202203
#endif /* PRIVATE_MM_ACMSTREAM_H_ */

src/main/mm/ACMStream.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/>
3-
* (C) 2020 Vladimir Sadovnikov <[email protected]>
2+
* Copyright (C) 2024 Linux Studio Plugins Project <https://lsp-plug.in/>
3+
* (C) 2024 Vladimir Sadovnikov <[email protected]>
44
*
55
* This file is part of lsp-runtime-lib
66
* Created on: 24 апр. 2020 г.
@@ -19,6 +19,10 @@
1919
* along with lsp-runtime-lib. If not, see <https://www.gnu.org/licenses/>.
2020
*/
2121

22+
#include <lsp-plug.in/common/types.h>
23+
24+
#ifdef PLATFORM_WINDOWS
25+
2226
#include <lsp-plug.in/common/alloc.h>
2327
#include <lsp-plug.in/common/debug.h>
2428
#include <lsp-plug.in/common/endian.h>
@@ -27,8 +31,6 @@
2731
#include <private/mm/ACMStream.h>
2832
#include <stdlib.h>
2933

30-
#ifndef USE_LIBSNDFILE
31-
3234
#include <windows.h>
3335
#include <mmreg.h>
3436
#include <msacm.h>
@@ -814,4 +816,4 @@ namespace lsp
814816
} /* namespace mm */
815817
} /* namespace lsp */
816818

817-
#endif /* USE_LIBSNDFILE */
819+
#endif /* PLATFORM_WINDOWS */

0 commit comments

Comments
 (0)