Skip to content
Permalink
Browse files
8266248: Compilation failure in PLATFORM_API_MacOSX_MidiUtils.c with …
…Xcode 12.5

Reviewed-by: prr, azvegint
  • Loading branch information
mrserb committed May 2, 2021
1 parent 5c083e8 commit dedddd5ab2e39a30a039d24f629a7974048b0923
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/java.desktop/macosx/native/libjsound/PLATFORM_API_MacOSX_MidiUtils.c
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* 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
}


static MIDIClientRef client = (MIDIClientRef) NULL;
static MIDIPortRef inPort = (MIDIPortRef) NULL;
static MIDIPortRef outPort = (MIDIPortRef) NULL;
static MIDIClientRef client = (MIDIClientRef) 0;
static MIDIPortRef inPort = (MIDIPortRef) 0;
static MIDIPortRef outPort = (MIDIPortRef) 0;

// 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) 0;

TRACE0("MIDI_Utils_OpenDevice\n");

0 comments on commit dedddd5

Please sign in to comment.