Files
termux-packages/packages/sc-im/xls.c.patch
termux-pacman-bot 6a75241220 sc-im: Bump to 0.8.3
2023-01-12 21:32:14 +00:00

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, "");