summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichelle legrand <michelle.legrand@openwide.fr>2014-12-23 16:03:40 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-26 18:08:15 +0100
commit2ff0b65488f3029f442e468f99daa3c0302b852b (patch)
tree31babb1ca804b53e7430f5759bed0c7afe9ac3c6
parentedb803f01f117faa6f4555bd9a493bfb23229922 (diff)
elm_datetime: compatibility for Windows.
Summary: For Windows, we have a nl_langinfo() equivalent in Evil. @fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/elm_datetime.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/elm_datetime.c b/src/lib/elm_datetime.c
index f1c9f0ccf..74fb9f774 100644
--- a/src/lib/elm_datetime.c
+++ b/src/lib/elm_datetime.c
@@ -124,7 +124,7 @@ _expanded_fmt_str_get(char ch)
124 switch (ch) 124 switch (ch)
125 { 125 {
126 case 'c': 126 case 'c':
127#ifdef HAVE_LANGINFO_H 127#if defined(HAVE_LANGINFO_H) || defined (HAVE_EVIL)
128 exp_fmt = nl_langinfo(D_T_FMT); 128 exp_fmt = nl_langinfo(D_T_FMT);
129#else 129#else
130 exp_fmt = ""; 130 exp_fmt = "";
@@ -132,7 +132,7 @@ _expanded_fmt_str_get(char ch)
132 break; 132 break;
133 133
134 case 'x': 134 case 'x':
135#ifdef HAVE_LANGINFO_H 135#if defined(HAVE_LANGINFO_H) || defined (HAVE_EVIL)
136 exp_fmt = nl_langinfo(D_FMT); 136 exp_fmt = nl_langinfo(D_FMT);
137#else 137#else
138 exp_fmt = ""; 138 exp_fmt = "";
@@ -140,7 +140,7 @@ _expanded_fmt_str_get(char ch)
140 break; 140 break;
141 141
142 case 'X': 142 case 'X':
143#ifdef HAVE_LANGINFO_H 143#if defined(HAVE_LANGINFO_H) || defined (HAVE_EVIL)
144 exp_fmt = nl_langinfo(T_FMT); 144 exp_fmt = nl_langinfo(T_FMT);
145#else 145#else
146 exp_fmt = ""; 146 exp_fmt = "";
@@ -148,7 +148,7 @@ _expanded_fmt_str_get(char ch)
148 break; 148 break;
149 149
150 case 'r': 150 case 'r':
151#ifdef HAVE_LANGINFO_H 151#if defined(HAVE_LANGINFO_H) || defined (HAVE_EVIL)
152 exp_fmt = nl_langinfo(T_FMT_AMPM); 152 exp_fmt = nl_langinfo(T_FMT_AMPM);
153#else 153#else
154 exp_fmt = ""; 154 exp_fmt = "";
@@ -321,7 +321,7 @@ _reload_format(Evas_Object *obj)
321 // FIXME: provide nl_langinfo on Windows if possible 321 // FIXME: provide nl_langinfo on Windows if possible
322 // fetch the default format from Libc. 322 // fetch the default format from Libc.
323 if (!sd->user_format) 323 if (!sd->user_format)
324#ifdef HAVE_LANGINFO_H 324#if defined(HAVE_LANGINFO_H) || defined (HAVE_EVIL)
325 strncpy(sd->format, nl_langinfo(D_T_FMT), ELM_DATETIME_MAX_FORMAT_LEN); 325 strncpy(sd->format, nl_langinfo(D_T_FMT), ELM_DATETIME_MAX_FORMAT_LEN);
326#else 326#else
327 strncpy(sd->format, "", ELM_DATETIME_MAX_FORMAT_LEN); 327 strncpy(sd->format, "", ELM_DATETIME_MAX_FORMAT_LEN);