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