testgui: fix compile warnings on macOS #51
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi!51
Loading…
Reference in a new issue
No description provided.
Delete branch "testgui-mac-warnings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The first commit should be backwards compatible (< 10.12), as I've added a define for the old type.
The second commit I'm not sure about, from what I could fine it was an API change in NSApplication in macOS 10.10, so it might not compile on versions before that?
@ -8,10 +8,19 @@#include <fx.h>lets have more friendly name for this constant, e.g.: MAC_OS_X_VERSION_10_12
@ -8,10 +8,19 @@#include <fx.h>This constant isn't available under macOS 10.12 so we'd have to add
Should I do that?
@ -8,10 +8,19 @@#include <fx.h>what about this solution ?
your suggestion is fine by me as well
anything is better than (unnamed) magic numbers