Closed
Bug 959912
Opened 11 years ago
Closed 11 years ago
widget/gonk/libui/cutils_log.h doesn't compile
Categories
(Core Graveyard :: Widget: Gonk, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla29
People
(Reporter: mwu, Assigned: seinlin)
References
Details
Attachments
(1 file, 3 obsolete files)
1.35 KB,
patch
|
mwu
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Reporter | ||
Updated•11 years ago
|
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → All
Comment 1•11 years ago
|
||
Kai-Zhen will check it first.
Assignee | ||
Comment 2•11 years ago
|
||
Both ANDROID_VERSION >= 19 and ANDROID_VERSION == 19 can work properly for gonk-kk.
Attachment #8360207 -
Flags: review?(mwu)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → kli
Reporter | ||
Updated•11 years ago
|
Attachment #8360207 -
Flags: review?(mwu) → review+
Assignee | ||
Comment 3•11 years ago
|
||
The duplicate typedef for gonk-kk need to be disabled.
Attachment #8360207 -
Attachment is obsolete: true
Attachment #8360211 -
Flags: review?(mwu)
Assignee | ||
Comment 4•11 years ago
|
||
Hi, Michael, Can you help me have a look on this patch?
Attachment #8360211 -
Attachment is obsolete: true
Attachment #8360211 -
Flags: review?(mwu)
Attachment #8360258 -
Flags: review?(mwu)
Reporter | ||
Comment 5•11 years ago
|
||
Comment on attachment 8360258 [details] [diff] [review]
bug-959912-fix-2.patch
Review of attachment 8360258 [details] [diff] [review]:
-----------------------------------------------------------------
::: widget/gonk/libui/cutils_log.h
@@ +32,2 @@
> #define _LIBS_CUTILS_LOG_H
> +#endif
I think we can just unconditionally define both things.
Assignee | ||
Comment 6•11 years ago
|
||
Do you mean something like this?
-----------------------------------------------------------------
-#ifndef _LIBS_CUTILS_LOG_H
+#if !defined(_LIBS_CUTILS_LOG_H) && !defined(_LIBS_LOG_LOG_H)
+#define _LIBS_LOG_LOG_H
#define _LIBS_CUTILS_LOG_H
-----------------------------------------------------------------
Without the outer most check, unconditionally define both thing may build break with the following error.
In file included from ../../../gecko/widget/gonk/libui/InputWindow.cpp:21:0:
../../../gecko/widget/gonk/libui/cutils_log.h:481:22: error: conflicting declaration 'EVENT_TYPE_INT'
In file included from ../../../system/core/include/cutils/log.h:1:0,
from ../../../system/core/include/utils/Vector.h:24,
from ../../../gecko/widget/gonk/libui/Input.h:25,
from ../../../gecko/widget/gonk/libui/InputWindow.h:20,
from ../../../gecko/widget/gonk/libui/InputWindow.cpp:19:
Reporter | ||
Comment 7•11 years ago
|
||
(In reply to Kai-Zhen Li from comment #6)
> Do you mean something like this?
> -----------------------------------------------------------------
> -#ifndef _LIBS_CUTILS_LOG_H
> +#if !defined(_LIBS_CUTILS_LOG_H) && !defined(_LIBS_LOG_LOG_H)
> +#define _LIBS_LOG_LOG_H
> #define _LIBS_CUTILS_LOG_H
>
> -----------------------------------------------------------------
>
That works for me here. What kind of build are you testing on?
Assignee | ||
Comment 8•11 years ago
|
||
OK, I'll submit a new patch ringht now.
It also work for me. I mean if unconditionally define without this line will build break.
#if !defined(_LIBS_CUTILS_LOG_H) && !defined(_LIBS_LOG_LOG_H)
Assignee | ||
Comment 9•11 years ago
|
||
Attachment #8360258 -
Attachment is obsolete: true
Attachment #8360258 -
Flags: review?(mwu)
Attachment #8360311 -
Flags: review?(mwu)
Reporter | ||
Comment 10•11 years ago
|
||
Comment on attachment 8360311 [details] [diff] [review]
bug-959912-fix-3.patch
Review of attachment 8360311 [details] [diff] [review]:
-----------------------------------------------------------------
Might need to double check that this works on other versions.
Attachment #8360311 -
Flags: review?(mwu) → review+
Assignee | ||
Comment 11•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 12•11 years ago
|
||
Keywords: checkin-needed
Comment 13•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Updated•6 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•