diff options
Diffstat (limited to 'src/lib/elementary/efl_ui_clock.c')
-rw-r--r-- | src/lib/elementary/efl_ui_clock.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/elementary/efl_ui_clock.c b/src/lib/elementary/efl_ui_clock.c index 6f579549dc..b8927bfaf6 100644 --- a/src/lib/elementary/efl_ui_clock.c +++ b/src/lib/elementary/efl_ui_clock.c | |||
@@ -144,7 +144,7 @@ _expanded_fmt_str_get(char ch) | |||
144 | switch (ch) | 144 | switch (ch) |
145 | { | 145 | { |
146 | case 'c': | 146 | case 'c': |
147 | #if defined(HAVE_LANGINFO_H) || defined (HAVE_EVIL) | 147 | #if defined(HAVE_LANGINFO_H) || defined (_WIN32) |
148 | exp_fmt = nl_langinfo(D_T_FMT); | 148 | exp_fmt = nl_langinfo(D_T_FMT); |
149 | #else | 149 | #else |
150 | exp_fmt = ""; | 150 | exp_fmt = ""; |
@@ -152,7 +152,7 @@ _expanded_fmt_str_get(char ch) | |||
152 | break; | 152 | break; |
153 | 153 | ||
154 | case 'x': | 154 | case 'x': |
155 | #if defined(HAVE_LANGINFO_H) || defined (HAVE_EVIL) | 155 | #if defined(HAVE_LANGINFO_H) || defined (_WIN32) |
156 | exp_fmt = nl_langinfo(D_FMT); | 156 | exp_fmt = nl_langinfo(D_FMT); |
157 | #else | 157 | #else |
158 | exp_fmt = ""; | 158 | exp_fmt = ""; |
@@ -160,7 +160,7 @@ _expanded_fmt_str_get(char ch) | |||
160 | break; | 160 | break; |
161 | 161 | ||
162 | case 'X': | 162 | case 'X': |
163 | #if defined(HAVE_LANGINFO_H) || defined (HAVE_EVIL) | 163 | #if defined(HAVE_LANGINFO_H) || defined (_WIN32) |
164 | exp_fmt = nl_langinfo(T_FMT); | 164 | exp_fmt = nl_langinfo(T_FMT); |
165 | #else | 165 | #else |
166 | exp_fmt = ""; | 166 | exp_fmt = ""; |
@@ -168,7 +168,7 @@ _expanded_fmt_str_get(char ch) | |||
168 | break; | 168 | break; |
169 | 169 | ||
170 | case 'r': | 170 | case 'r': |
171 | #if defined(HAVE_LANGINFO_H) || defined (HAVE_EVIL) | 171 | #if defined(HAVE_LANGINFO_H) || defined (_WIN32) |
172 | exp_fmt = nl_langinfo(T_FMT_AMPM); | 172 | exp_fmt = nl_langinfo(T_FMT_AMPM); |
173 | #else | 173 | #else |
174 | exp_fmt = ""; | 174 | exp_fmt = ""; |
@@ -347,7 +347,7 @@ _reload_format(Evas_Object *obj) | |||
347 | // FIXME: provide nl_langinfo on Windows if possible | 347 | // FIXME: provide nl_langinfo on Windows if possible |
348 | // fetch the default format from Libc. | 348 | // fetch the default format from Libc. |
349 | if (!sd->user_format) | 349 | if (!sd->user_format) |
350 | #if defined(HAVE_LANGINFO_H) || defined (HAVE_EVIL) | 350 | #if defined(HAVE_LANGINFO_H) || defined (_WIN32) |
351 | strncpy(sd->format, nl_langinfo(D_T_FMT), EFL_UI_CLOCK_MAX_FORMAT_LEN); | 351 | strncpy(sd->format, nl_langinfo(D_T_FMT), EFL_UI_CLOCK_MAX_FORMAT_LEN); |
352 | #else | 352 | #else |
353 | strncpy(sd->format, "", EFL_UI_CLOCK_MAX_FORMAT_LEN); | 353 | strncpy(sd->format, "", EFL_UI_CLOCK_MAX_FORMAT_LEN); |