From 75caaf0963e10ef1a2aa9a381da822f30dc7f267 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Mon, 16 May 2016 22:37:36 +0300 Subject: [PATCH] Solve minor problem with compiling OMX related things on Mac --- src/Sources/OMXPlayerCache.cpp | 6 +++++- src/Sources/OMXPlayerCache.h | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Sources/OMXPlayerCache.cpp b/src/Sources/OMXPlayerCache.cpp index 0d3fcbc..c6017c4 100644 --- a/src/Sources/OMXPlayerCache.cpp +++ b/src/Sources/OMXPlayerCache.cpp @@ -1,5 +1,7 @@ #include "OMXPlayerCache.h" +#ifdef TARGET_RASPBERRY_PI + namespace ofx { namespace piMapper { @@ -39,4 +41,6 @@ void OMXPlayerCache::unload(string moviePath){ } } // namespace piMapper -} // namespace ofx \ No newline at end of file +} // namespace ofx + +#endif \ No newline at end of file diff --git a/src/Sources/OMXPlayerCache.h b/src/Sources/OMXPlayerCache.h index 67338f5..ae427a0 100644 --- a/src/Sources/OMXPlayerCache.h +++ b/src/Sources/OMXPlayerCache.h @@ -1,9 +1,12 @@ #pragma once +#ifdef TARGET_RASPBERRY_PI + #include "ofMain.h" #include "ofxOMXPlayer.h" #include "VideoSource.h" + namespace ofx { namespace piMapper { @@ -22,3 +25,5 @@ class OMXPlayerCache { } // namespace piMapper } // namespace ofx + +#endif