aboutsummaryrefslogtreecommitdiff
path: root/lib/stsound
diff options
context:
space:
mode:
authorFneufneu <fneufneu@xbmc.org>2011-01-31 18:25:12 +0100
committerspiff <spiff@xbmc.org>2011-03-19 09:17:50 +0100
commit131622d52d94e5476f78cbd30d85315437f4eacc (patch)
tree96076cc75f93b0398311c5852c214cef83ed4d31 /lib/stsound
parent93b0f35205c7fa6360aef92c54a414cb5b38f6af (diff)
added: FreeBSD support in stsound
Diffstat (limited to 'lib/stsound')
-rw-r--r--lib/stsound/StSoundLibrary/XBMCYM.cpp2
-rw-r--r--lib/stsound/StSoundLibrary/YmTypes.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/stsound/StSoundLibrary/XBMCYM.cpp b/lib/stsound/StSoundLibrary/XBMCYM.cpp
index a85acf85c6..7fb1239eaf 100644
--- a/lib/stsound/StSoundLibrary/XBMCYM.cpp
+++ b/lib/stsound/StSoundLibrary/XBMCYM.cpp
@@ -25,7 +25,7 @@
#include <stdio.h>
#include <stdint.h>
-#ifdef __linux__
+#if defined(__linux__) || defined(__FreeBSD__)
#define __declspec(x)
#endif
diff --git a/lib/stsound/StSoundLibrary/YmTypes.h b/lib/stsound/StSoundLibrary/YmTypes.h
index 90b89831d9..37b4fa8c37 100644
--- a/lib/stsound/StSoundLibrary/YmTypes.h
+++ b/lib/stsound/StSoundLibrary/YmTypes.h
@@ -39,12 +39,12 @@
// Platform specific stuff
//-----------------------------------------------------------
-#if defined(_WIN32) || defined(__linux__)
+#if defined(_WIN32) || defined(__linux__) || defined(__FreeBSD__)
// These settings are ok for Windows 32bits platform.
#ifdef YM_INTEGER_ONLY
-#ifdef __linux__
+#if defined(__linux__) || defined(__FreeBSD__)
#include <inttypes.h>
typedef int64_t yms64;
#else