Skip to content

Commit e44258c

Browse files
author
Paul Hohensee
committed
8266248: Compilation failure in PLATFORM_API_MacOSX_MidiUtils.c with Xcode 12.5
Backport-of: dedddd5
1 parent 9420012 commit e44258c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_MidiUtils.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -255,9 +255,9 @@ INT32 MIDI_Utils_GetDeviceVersion(int direction, INT32 deviceID, char *name, UIN
255255
}
256256

257257

258-
static MIDIClientRef client = (MIDIClientRef) NULL;
259-
static MIDIPortRef inPort = (MIDIPortRef) NULL;
260-
static MIDIPortRef outPort = (MIDIPortRef) NULL;
258+
static MIDIClientRef client = (MIDIClientRef) 0;
259+
static MIDIPortRef inPort = (MIDIPortRef) 0;
260+
static MIDIPortRef outPort = (MIDIPortRef) 0;
261261

262262
// Each MIDIPacket can contain more than one midi messages.
263263
// 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**
463463
midiInit();
464464

465465
int err = MIDI_ERROR_NONE;
466-
MIDIEndpointRef endpoint = (MIDIEndpointRef) NULL;
466+
MIDIEndpointRef endpoint = (MIDIEndpointRef) 0;
467467

468468
TRACE0("MIDI_Utils_OpenDevice\n");
469469

0 commit comments

Comments
 (0)