Closed Bug 1410266 Opened 7 years ago Closed 7 years ago

[libc++] intl/locale/gtk/OSPreferences_gtk.cpp:35:37: error: use of undeclared identifier 'LC_TIME'

Categories

(Core :: Internationalization, defect, P3)

Unspecified
FreeBSD
defect

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox-esr52 --- unaffected
firefox56 --- unaffected
firefox57 --- unaffected
firefox58 --- fixed

People

(Reporter: jbeich, Assigned: zbraniecki)

References

Details

(Keywords: regression)

Attachments

(1 file)

intl/locale/gtk/OSPreferences_gtk.cpp:35:37: error: use of undeclared identifier 'LC_TIME' nsAutoCString localeStr(setlocale(LC_TIME, nullptr)); ^ 1 error generated. Did you forget to explicitly include <locale.h> for LC_TIME? GCC/libstdc++: In file included from objdir/dist/system_wrappers/locale.h:3:0, from /usr/local/lib/gcc7/include/c++/clocale:42, from /usr/local/lib/gcc7/include/c++/x86_64-portbld-freebsd12.0/bits/c++locale.h:42, from /usr/local/lib/gcc7/include/c++/bits/localefwd.h:40, from /usr/local/lib/gcc7/include/c++/ios:41, from objdir/dist/system_wrappers/ios:3, from objdir/dist/stl_wrappers/ios:44, from /usr/local/lib/gcc7/include/c++/ostream:38, from objdir/dist/system_wrappers/ostream:3, from objdir/dist/stl_wrappers/ostream:44, from /usr/local/lib/gcc7/include/c++/iterator:64, from objdir/dist/system_wrappers/iterator:3, from objdir/dist/stl_wrappers/iterator:44, from objdir/dist/include/mozilla/ArrayIterator.h:12, from objdir/dist/include/nsTArray.h:12, from objdir/dist/include/mozilla/EventForwards.h:12, from dom/html/nsGenericHTMLElement.h:10, from objdir/dist/include/mozilla/dom/HTMLMapElement.h:11, from dom/html/HTMLMapElement.cpp:7, from objdir/dom/html/Unified_cpp_dom_html2.cpp:2: /usr/include/locale.h:36:2: error: #error bootlegging test
Sorry Jan! Fixing :)
Comment on attachment 8920419 [details] Bug 1410266 - Explicitly include locale.h in OSPreferences_gtk.cpp. https://reviewboard.mozilla.org/r/191390/#review196772
Attachment #8920419 - Flags: review?(jfkthame) → review+
Assignee: nobody → gandalf
Status: NEW → ASSIGNED
Pushed by zbraniecki@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9231586e6c1e Explicitly include locale.h in OSPreferences_gtk.cpp. r=jfkthame
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: