Closed Bug 464485 Opened 18 years ago Closed 17 years ago

npruntime sample does not compile on linux (FALSE not declared)

Categories

(Core Graveyard :: Plug-ins, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: arno, Assigned: arno)

References

Details

Attachments

(1 file)

Hi, even after including npfunctions.h instead of npupp.h for npruntime, sample plugin does not compile. (see bug 464481 comment 1) home/arno/mozilla/modules/plugin/sdk/samples/npruntime/plugin.cpp: In constructor 'CPlugin::CPlugin(NPP_t*)': /home/arno/mozilla/modules/plugin/sdk/samples/npruntime/plugin.cpp:474: error: 'FALSE' was not declared in this scope /home/arno/mozilla/modules/plugin/sdk/samples/npruntime/plugin.cpp: In member function 'NPBool CPlugin::init(NPWindow*)': /home/arno/mozilla/modules/plugin/sdk/samples/npruntime/plugin.cpp:625: error: 'FALSE' was not declared in this scope /home/arno/mozilla/modules/plugin/sdk/samples/npruntime/plugin.cpp:643: error: 'TRUE' was not declared in this scope /home/arno/mozilla/modules/plugin/sdk/samples/npruntime/plugin.cpp: In member function 'void CPlugin::shut()': /home/arno/mozilla/modules/plugin/sdk/samples/npruntime/plugin.cpp:655: error: 'FALSE' was not declared in this scope I don't known if FALSE is defined on other platforms than linux, so I think that bug could be platform specific. That's why I filled a different bug. plugin.cpp mixes false, FALSE and PR_FALSE. What about using only false ?
Attachment #347808 - Flags: review?(jst)
Depends on: 464481
Assignee: nobody → arno
Keywords: checkin-needed
Version: unspecified → Trunk
Comment on attachment 347808 [details] [diff] [review] uses false/true in lowercase Removing 'checkin-needed', as a review is outstanding.
Attachment #347808 - Flags: review?(jst) → review?(joshmoz)
Comment on attachment 347808 [details] [diff] [review] uses false/true in lowercase Sorry, I must have been confused when reading my bugmail. I thought it has been reviewed simultaneously with bug #464481
Attachment #347808 - Flags: superreview?(jst)
Attachment #347808 - Flags: review?(joshmoz)
Attachment #347808 - Flags: review+
Attachment #347808 - Flags: superreview?(jst) → superreview?(roc)
Attachment #347808 - Flags: superreview?(roc) → superreview+
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Blocks: 468835
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: