build fixes for the Mac OS X basic plugin in our plugin SDK. b=459091 sr=dougt

This commit is contained in:
Josh Aas 2008-10-16 16:21:54 -04:00
parent 810e90b149
commit 3c5947edd0
2 changed files with 7 additions and 2 deletions

View File

@ -14,8 +14,11 @@
*
* ***** END LICENSE BLOCK ***** */
// This just needs to include npapi headers, change the path to whatever works for you
#include "npapi.h"
// This just needs to include NPAPI headers, change the path to whatever works
// for you. Note that "XP_MACOSX=1" is defined in the project so that the NPAPI
// headers know we're compiling for Mac OS X.
#include "../../../../base/public/npapi.h"
#include "../../../../base/public/npfunctions.h"
NPError NP_Initialize(NPNetscapeFuncs *browserFuncs);
NPError NP_GetEntryPoints(NPPluginFuncs *pluginFuncs);

View File

@ -189,6 +189,7 @@
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
GCC_C_LANGUAGE_STANDARD = c99;
GCC_PREPROCESSOR_DEFINITIONS = "XP_MACOSX=1";
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
ONLY_ACTIVE_ARCH = YES;
@ -202,6 +203,7 @@
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
GCC_C_LANGUAGE_STANDARD = c99;
GCC_PREPROCESSOR_DEFINITIONS = "XP_MACOSX=1";
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
PREBINDING = NO;