summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-18 21:58:56 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-18 21:58:56 +0000
commite26cfd7bf1a3faad625e2fc9b98552536ed42b44 (patch)
treed7dcace40a95d9ac6a53782f56c15f4ed944ce5b /third_party
parent9c3bc43e11903390e309060690440b605cd5b687 (diff)
downloadchromium_src-e26cfd7bf1a3faad625e2fc9b98552536ed42b44.zip
chromium_src-e26cfd7bf1a3faad625e2fc9b98552536ed42b44.tar.gz
chromium_src-e26cfd7bf1a3faad625e2fc9b98552536ed42b44.tar.bz2
#define XP_UNIX and XP_MACOSX for NPAPI as was done for Linux in r9170.
Review URL: http://codereview.chromium.org/21468 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9975 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/npapi/bindings/npapi.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/third_party/npapi/bindings/npapi.h b/third_party/npapi/bindings/npapi.h
index 1ab6463..27492d7 100644
--- a/third_party/npapi/bindings/npapi.h
+++ b/third_party/npapi/bindings/npapi.h
@@ -104,9 +104,13 @@
#endif /* _WINDOWS */
// BEGIN GOOGLE MODIFICATIONS
-// On Linux, be sure to set the Mozilla-specific flag.
-#ifdef OS_LINUX
+// On Linux and Mac, be sure to set Mozilla-specific macros.
+#if defined(OS_LINUX)
#define XP_UNIX 1
+#elif defined(OS_MACOSX)
+#ifndef XP_MACOSX
+#define XP_MACOSX 1
+#endif
#endif
// END GOOGLE MODIFICATIONS