Open
Bug 575206
Opened 15 years ago
Updated 3 years ago
Incorrect accelerometer platform defines in nsLayoutModule.cpp
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
NEW
People
(Reporter: mwu, Unassigned)
References
Details
Attachments
(1 file)
|
2.48 KB,
patch
|
mwu
:
feedback+
|
Details | Diff | Splinter Review |
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.
Comment 1•15 years ago
|
||
Attachment #454474 -
Flags: feedback?(mwu)
| Reporter | ||
Comment 2•15 years ago
|
||
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+
Comment 3•15 years ago
|
||
I suspect there are plenty. Things like Solaris, *BSD, etc. Should we instead be testing MOZ_WIDGET_GTK2 || MOZ_WIDGET_QT there?
| Reporter | ||
Comment 4•15 years ago
|
||
(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?
Comment 5•15 years ago
|
||
Yeah, true. Are we feature testing for something for accelerometer support on GTK2?
Comment 6•15 years ago
|
||
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)))
???
Comment 7•15 years ago
|
||
There's a MOZ_WIDGET_COCOA define, I don't know about android.
Updated•7 years ago
|
Product: Core → Firefox Build System
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•