summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-11-10 12:19:53 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-11-10 12:20:27 +0900
commit247d25aa99b6dd461ce82f61fa8345f86c157b0f (patch)
tree027f6789d01f0a1b412b74121af7f481cd03e25b
parent41062cb15d2fecf57d3e649eabdb373f909ca53c (diff)
downloadefl-247d25aa99b6dd461ce82f61fa8345f86c157b0f.tar.gz
cxx: Fix example for GCC
clang has no problem, but GCC complains with "support not implemented" Discovered with distcheck
-rw-r--r--src/examples/elementary/clock_cxx_example.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/examples/elementary/clock_cxx_example.cc b/src/examples/elementary/clock_cxx_example.cc
index a290c08267..7e30937c2c 100644
--- a/src/examples/elementary/clock_cxx_example.cc
+++ b/src/examples/elementary/clock_cxx_example.cc
@@ -21,9 +21,14 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
ck2.format_set("%I:%M %p");
bx.pack_end(ck2);
+ Efl_Time time;
+ time.tm_hour = 12;
+ time.tm_min = 42;
+ time.tm_sec = 59;
+
efl::ui::Clock ck3(instantiate, win);
ck2.format_set("%H:%M:%S");
- ck3.time_set(Efl_Time({.tm_hour = 12, .tm_min = 42, .tm_sec = 59}));
+ ck3.time_set(time);
bx.pack_end(ck3);
efl::ui::Clock ck5(instantiate, win);