[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on
From: |
Peter Maydell |
Subject: |
Re: [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on macOS 12 |
Date: |
Mon, 10 Jan 2022 19:07:57 +0000 |
On Mon, 10 Jan 2022 at 19:01, Akihiko Odaki <akihiko.odaki@gmail.com> wrote:
> Assuming the correctness of the use MAC_OS_X_VERSION_MAX_ALLOWED is
> irrelevant with the nature of the identifier (constant or not), the same
> problem is in ui/cocoa.m:
> #ifndef MAC_OS_X_VERSION_10_13
> #define MAC_OS_X_VERSION_10_13 101300
> #endif
>
> /* 10.14 deprecates NSOnState and NSOffState in favor of
> * NSControlStateValueOn/Off, which were introduced in 10.13.
> * Define for older versions
> */
> #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_13
> #define NSControlStateValueOn NSOnState
> #define NSControlStateValueOff NSOffState
> #endif
It's tempting to fix that one by just deleting the ifdeffery,
since cocoa.m already doesn't compile on 10.13 (it uses
NSPasteboardTypeOwner, which was only introduced in 10.14)...
-- PMM
- [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on macOS 12, (continued)
- [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on macOS 12, Philippe Mathieu-Daudé, 2022/01/09
- Re: [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on macOS 12, Akihiko Odaki, 2022/01/10
- Re: [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on macOS 12, Philippe Mathieu-Daudé, 2022/01/10
- Re: [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on macOS 12, Philippe Mathieu-Daudé, 2022/01/10
- Re: [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on macOS 12, Christian Schoenebeck, 2022/01/10
- Re: [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on macOS 12, Philippe Mathieu-Daudé, 2022/01/10
- Re: [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on macOS 12, Peter Maydell, 2022/01/10
- Re: [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on macOS 12, Akihiko Odaki, 2022/01/10
- Re: [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on macOS 12, Christian Schoenebeck, 2022/01/10
- Re: [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on macOS 12, Akihiko Odaki, 2022/01/10
- Re: [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on macOS 12,
Peter Maydell <=
- Re: [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on macOS 12, Christian Schoenebeck, 2022/01/10
- Re: [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on macOS 12, Akihiko Odaki, 2022/01/10
- Re: [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on macOS 12, Christian Schoenebeck, 2022/01/10
- Re: [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on macOS 12, Akihiko Odaki, 2022/01/10
- Re: [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on macOS 12, Christian Schoenebeck, 2022/01/11
- Re: [RFC PATCH v2 2/6] audio/coreaudio: Remove a deprecation warning on macOS 12, Christian Schoenebeck, 2022/01/11
[RFC PATCH v2 3/6] block/file-posix: Remove a deprecation warning on macOS 12, Philippe Mathieu-Daudé, 2022/01/09
[RFC PATCH v2 4/6] hvf: Make hvf_get_segments() / hvf_put_segments() local, Philippe Mathieu-Daudé, 2022/01/09
[RFC PATCH v2 5/6] hvf: Remove deprecated hv_vcpu_flush() calls, Philippe Mathieu-Daudé, 2022/01/09
[PATCH v2 6/6] gitlab-ci: Support macOS 12 via cirrus-run, Philippe Mathieu-Daudé, 2022/01/09