Created
April 4, 2021 19:26
-
-
Save bfu4/c8b1be53f87b450cc16fd94aca7c2198 to your computer and use it in GitHub Desktop.
really fucking stupid patch to get jdk17-internal to compile on m1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_MidiUtils.c b/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_MidiUtils.c | |
index b139020c7b2..7f561db3bca 100644 | |
--- a/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_MidiUtils.c | |
+++ b/src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_MidiUtils.c | |
@@ -255,9 +255,9 @@ INT32 MIDI_Utils_GetDeviceVersion(int direction, INT32 deviceID, char *name, UIN | |
} | |
-static MIDIClientRef client = (MIDIClientRef) NULL; | |
-static MIDIPortRef inPort = (MIDIPortRef) NULL; | |
-static MIDIPortRef outPort = (MIDIPortRef) NULL; | |
+static MIDIClientRef client = (MIDIClientRef) ((uintptr_t) NULL); | |
+static MIDIPortRef inPort = (MIDIPortRef) ((uintptr_t) NULL); | |
+static MIDIPortRef outPort = (MIDIPortRef) ((uintptr_t) NULL); | |
// Each MIDIPacket can contain more than one midi messages. | |
// This function processes the packet and adds the messages to the specified message queue. | |
@@ -463,7 +463,7 @@ INT32 MIDI_Utils_OpenDevice(int direction, INT32 deviceID, MacMidiDeviceHandle** | |
midiInit(); | |
int err = MIDI_ERROR_NONE; | |
- MIDIEndpointRef endpoint = (MIDIEndpointRef) NULL; | |
+ MIDIEndpointRef endpoint = (MIDIEndpointRef) ((uintptr_t) NULL); | |
TRACE0("MIDI_Utils_OpenDevice\n"); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bad cheatz to make it compile because it doesn't like the void ptr being casted to an unsigned int, blah blah and i don't really care about libjsound