mirror of
https://github.com/termux/termux-packages.git
synced 2025-03-04 04:48:55 +00:00
24 lines
476 B
Diff
24 lines
476 B
Diff
--- a/src/xls.c
|
|
+++ b/src/formats/xls.c
|
|
@@ -71,6 +71,11 @@
|
|
*
|
|
* \return -1 on error
|
|
*/
|
|
+#ifdef USELOCALE
|
|
+#include <locale.h>
|
|
+#include <langinfo.h>
|
|
+#endif
|
|
+
|
|
int open_xls(char * fname, char * encoding) {
|
|
#ifdef XLS
|
|
struct roman * roman = session->cur_doc;
|
|
@@ -78,8 +83,6 @@
|
|
char fmt[15] = "%d/%m/%Y";
|
|
|
|
#ifdef USELOCALE
|
|
- #include <locale.h>
|
|
- #include <langinfo.h>
|
|
char * loc = NULL;
|
|
char * f = NULL;
|
|
loc = setlocale(LC_TIME, "");
|