Skip to content

Commit

Permalink
use the posix-compliant __linux__ preproc symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Nov 16, 2022
1 parent caf840a commit 1d64a31
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Documentation/sources/Guide/Code/Example1/basics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// the one OFX header we need, it includes the others necessary
#include "ofxImageEffect.h"

#if defined __APPLE__ || defined linux || defined __FreeBSD__
#if defined __APPLE__ || defined __linux__ || defined __FreeBSD__
# define EXPORT __attribute__((visibility("default")))
#elif defined _WIN32
# define EXPORT OfxExport
Expand Down
2 changes: 1 addition & 1 deletion Documentation/sources/Guide/Code/Example2/invert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// the one OFX header we need, it includes the others necessary
#include "ofxImageEffect.h"

#if defined __APPLE__ || defined linux || defined __FreeBSD__
#if defined __APPLE__ || defined __linux__ || defined __FreeBSD__
# define EXPORT __attribute__((visibility("default")))
#elif defined _WIN32
# define EXPORT OfxExport
Expand Down
2 changes: 1 addition & 1 deletion Documentation/sources/Guide/Code/Example3/gain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// the one OFX header we need, it includes the others necessary
#include "ofxImageEffect.h"

#if defined __APPLE__ || defined linux || defined __FreeBSD__
#if defined __APPLE__ || defined __linux__ || defined __FreeBSD__
# define EXPORT __attribute__((visibility("default")))
#elif defined _WIN32
# define EXPORT OfxExport
Expand Down
2 changes: 1 addition & 1 deletion Documentation/sources/Guide/Code/Example4/saturation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// the one OFX header we need, it includes the others necessary
#include "ofxImageEffect.h"

#if defined __APPLE__ || defined linux || defined __FreeBSD__
#if defined __APPLE__ || defined __linux__ || defined __FreeBSD__
# define EXPORT __attribute__((visibility("default")))
#elif defined _WIN32
# define EXPORT OfxExport
Expand Down
2 changes: 1 addition & 1 deletion Documentation/sources/Guide/Code/Example5/circle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// the one OFX header we need, it includes the others necessary
#include "ofxImageEffect.h"

#if defined __APPLE__ || defined linux || defined __FreeBSD__
#if defined __APPLE__ || defined __linux__ || defined __FreeBSD__
# define EXPORT __attribute__((visibility("default")))
#elif defined _WIN32
# define EXPORT OfxExport
Expand Down
2 changes: 1 addition & 1 deletion Examples/Basic/basic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "../include/ofxUtilities.H" // example support utils

#if defined __APPLE__ || defined linux || defined __FreeBSD__
#if defined __APPLE__ || defined __linux__ || defined __FreeBSD__
# define EXPORT __attribute__((visibility("default")))
#elif defined _WIN32
# define EXPORT OfxExport
Expand Down
2 changes: 1 addition & 1 deletion Examples/Custom/custom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "../include/ofxUtilities.H" // example support utils

#if defined __APPLE__ || defined linux || defined __FreeBSD__
#if defined __APPLE__ || defined __linux__ || defined __FreeBSD__
# define EXPORT __attribute__((visibility("default")))
#elif defined _WIN32
# define EXPORT OfxExport
Expand Down
2 changes: 1 addition & 1 deletion Examples/DepthConverter/depthConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "../include/ofxUtilities.H" // example support utils

#if defined __APPLE__ || defined linux || defined __FreeBSD__
#if defined __APPLE__ || defined __linux__ || defined __FreeBSD__
# define EXPORT __attribute__((visibility("default")))
#elif defined _WIN32
# define EXPORT OfxExport
Expand Down
2 changes: 1 addition & 1 deletion Examples/Invert/invert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "ofxMultiThread.h"
#include "ofxPixels.h"

#if defined __APPLE__ || defined linux || defined __FreeBSD__
#if defined __APPLE__ || defined __linux__ || defined __FreeBSD__
# define EXPORT __attribute__((visibility("default")))
#elif defined _WIN32
# define EXPORT OfxExport
Expand Down
2 changes: 1 addition & 1 deletion Examples/OpenGL/opengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "../include/ofxUtilities.H" // example support utils

#if defined __APPLE__ || defined linux || defined __FreeBSD__
#if defined __APPLE__ || defined __linux__ || defined __FreeBSD__
# define EXPORT __attribute__((visibility("default")))
#elif defined _WIN32
# define EXPORT OfxExport
Expand Down
2 changes: 1 addition & 1 deletion Examples/Overlay/overlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "../include/ofxUtilities.H" // example support utils

#if defined __APPLE__ || defined linux || defined __FreeBSD__
#if defined __APPLE__ || defined __linux__ || defined __FreeBSD__
# define EXPORT __attribute__((visibility("default")))
#elif defined _WIN32
# define EXPORT OfxExport
Expand Down
2 changes: 1 addition & 1 deletion Examples/Rectangle/rectangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "../include/ofxUtilities.H" // example support utils

#if defined __APPLE__ || defined linux || defined __FreeBSD__
#if defined __APPLE__ || defined __linux__ || defined __FreeBSD__
# define EXPORT __attribute__((visibility("default")))
#elif defined _WIN32
# define EXPORT OfxExport
Expand Down
2 changes: 1 addition & 1 deletion Examples/Test/testProperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ run it through a c beautifier or emacs auto formatting, automagic indenting will

#include "ofxLog.H"

#if defined __APPLE__ || defined linux || defined __FreeBSD__
#if defined __APPLE__ || defined __linux__ || defined __FreeBSD__
# define EXPORT __attribute__((visibility("default")))
#elif defined _WIN32
# define EXPORT OfxExport
Expand Down

0 comments on commit 1d64a31

Please sign in to comment.