Open Bug 575206 Opened 15 years ago Updated 3 years ago

Incorrect accelerometer platform defines in nsLayoutModule.cpp

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

People

(Reporter: mwu, Unassigned)

References

Details

Attachments

(1 file)

Bug 562181 added a bunch of #ifdefs that look like: +#if defined(XP_UNIX) || \ + defined(_WINDOWS) || \ + defined(machintosh) || \ + defined(android) machintosh is obviously incorrect, android should be capitalized, and I suspect _WINDOWS would do better as XP_WIN. Also, android and machintosh are likely not necessary since they are both unixish platforms.
Attached patch Like this?Splinter Review
Attachment #454474 - Flags: feedback?(mwu)
Comment on attachment 454474 [details] [diff] [review] Like this? Looks right to me. Hopefully there aren't any platforms that define XP_UNIX that we don't support accelerometer on.
Attachment #454474 - Flags: feedback?(mwu) → feedback+
I suspect there are plenty. Things like Solaris, *BSD, etc. Should we instead be testing MOZ_WIDGET_GTK2 || MOZ_WIDGET_QT there?
(In reply to comment #3) > I suspect there are plenty. Things like Solaris, *BSD, etc. Should we instead > be testing MOZ_WIDGET_GTK2 || MOZ_WIDGET_QT there? What other widget backend would Solaris/*BSD use?
Yeah, true. Are we feature testing for something for accelerometer support on GTK2?
I think testing MOZ_WIDGET_GTK2 || MOZ_WIDGET_QT will be ok, as the corresponding test in the make file is: ifneq (,$(filter qt gtk2,$(MOZ_WIDGET_TOOLKIT))) What should the corresponding values be for mac and android - so it fits the make file: ifneq (,$(filter cocoa,$(MOZ_WIDGET_TOOLKIT))) and ifneq (,$(filter android,$(MOZ_WIDGET_TOOLKIT))) ???
There's a MOZ_WIDGET_COCOA define, I don't know about android.
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: