Skip to content

Commit

Permalink
-Fix: build under Mac OS X 10.4 PPC
Browse files Browse the repository at this point in the history
circumvent a bug in Mac OS X 10.4 SDK when altivec is enabled
  • Loading branch information
miniupnp committed May 24, 2018
1 parent 5bf89d6 commit 81ceb54
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/audio/midi_osx.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
/** @file src/audio/midi_osx.c Mac OS X implementation of the MIDI.
* See PlaySoftMIDI example from the OS X SDK. */

#if defined(__ALTIVEC__) && !defined(MAC_OS_X_VERSION_10_5)
/* to circumvent a bug in Mac OS X 10.4 SDK */
#define vector __vector
#include <CoreServices/CoreServices.h>
#undef vector
#endif
#include <AudioUnit/AudioUnit.h>
#include <AudioToolbox/AudioToolbox.h>
#include "types.h"
Expand Down
6 changes: 6 additions & 0 deletions src/video/video_osxppc.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
/* Mac OS X 10.4 CoreGraphics direct access video driver */

#if defined(__ALTIVEC__) && !defined(MAC_OS_X_VERSION_10_5)
/* to circumvent a bug in Mac OS X 10.4 SDK */
#define vector __vector
#include <CoreServices/CoreServices.h>
#undef vector
#endif
/* CoreGraphics is part of ApplicationServices FrameWork */
#include <ApplicationServices/ApplicationServices.h>
#include <Carbon/Carbon.h>
Expand Down

0 comments on commit 81ceb54

Please sign in to comment.