summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-02-13 00:49:30 -0700
committerIra Rice <irarice@gmail.com>2009-02-13 00:49:30 -0700
commit35d95932256d615da0599bad8acdbf91777962b0 (patch)
tree48023e37d395751ae5b20a192492a097c4b9f9f9 /src
parentb22ac47b467684e0cd9b5497f2bd7074ead377f4 (diff)
downloadmana-35d95932256d615da0599bad8acdbf91777962b0.tar.gz
mana-35d95932256d615da0599bad8acdbf91777962b0.tar.bz2
mana-35d95932256d615da0599bad8acdbf91777962b0.tar.xz
mana-35d95932256d615da0599bad8acdbf91777962b0.zip
Added in mac build support, contributed to us by allenmoatallen> from
Legends of Mazzeroth. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/resources/music.h5
-rw-r--r--src/resources/soundeffect.h4
-rw-r--r--src/sound.h4
3 files changed, 12 insertions, 1 deletions
diff --git a/src/resources/music.h b/src/resources/music.h
index 36da6a61..32b25edf 100644
--- a/src/resources/music.h
+++ b/src/resources/music.h
@@ -23,8 +23,11 @@
#ifndef MUSIC_H
#define MUSIC_H
+#ifdef __APPLE__
+#include <SDL_mixer/SDL_mixer.h>
+#elif
#include <SDL_mixer.h>
-
+#endif
#include "resource.h"
/**
diff --git a/src/resources/soundeffect.h b/src/resources/soundeffect.h
index e2181767..070a13de 100644
--- a/src/resources/soundeffect.h
+++ b/src/resources/soundeffect.h
@@ -23,7 +23,11 @@
#ifndef SOUND_EFFECT_H
#define SOUND_EFFECT_H
+#ifdef __APPLE__
+#include <SDL_mixer/SDL_mixer.h>
+#elif
#include <SDL_mixer.h>
+#endif
#include "resource.h"
diff --git a/src/sound.h b/src/sound.h
index 53fde14e..14a319c1 100644
--- a/src/sound.h
+++ b/src/sound.h
@@ -23,7 +23,11 @@
#ifndef SOUND_H
#define SOUND_H
+#ifdef __APPLE__
+#include <SDL_mixer/SDL_mixer.h>
+#elif
#include <SDL_mixer.h>
+#endif
#include <string>
/** Sound engine