diff options
author | mseaborn <mseaborn@chromium.org> | 2015-12-15 07:52:31 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-15 07:52:31 -0800 |
commit | 19b0420e877d3e27d5315d8a539e671cf2b479eb (patch) | |
tree | 0b7c5f1ecfbbdb6b3ee46c63359f120ee0a2d831 /include/core/SkPreConfig.h | |
parent | fce612ac32a224d874acfce2b1ccf8db1a553307 (diff) |
SkPreConfig.h: Allow defined(__unix__) to imply SK_BUILD_FOR_UNIX
This is more general than checking for __linux, __FreeBSD__, etc. (In
principle we could remove some of the existing checks such as
__FreeBSD__, but I have not tried that so far.)
In particular, it allows Skia to build with the NaCl or PNaCl
toolchains, which is something we would like for Mojo.
BUG=https://github.com/domokit/mojo/issues/431
TEST=none
Review URL: https://codereview.chromium.org/1523733003
Diffstat (limited to 'include/core/SkPreConfig.h')
-rw-r--r-- | include/core/SkPreConfig.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/core/SkPreConfig.h b/include/core/SkPreConfig.h index a1a3037b94..9371a26a8c 100644 --- a/include/core/SkPreConfig.h +++ b/include/core/SkPreConfig.h @@ -30,7 +30,8 @@ #define SK_BUILD_FOR_ANDROID #elif defined(linux) || defined(__linux) || defined(__FreeBSD__) || \ defined(__OpenBSD__) || defined(__sun) || defined(__NetBSD__) || \ - defined(__DragonFly__) || defined(__GLIBC__) || defined(__GNU__) + defined(__DragonFly__) || defined(__GLIBC__) || defined(__GNU__) || \ + defined(__unix__) #define SK_BUILD_FOR_UNIX #elif TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR #define SK_BUILD_FOR_IOS |