Missing locale_t

Install gtk 1.2 (gtk1 package name) with macports chokes in the final make line libintl.h 440.

extern locale_t libintl_newlocale (junk, stuff, stuff)

The compiler cannot find locale_t, and I will not be better.

The file imports locale.h, which does not exist, and xlocale.h, which does not define this type.

Where to define locale_t? It may be as simple as a missing dependency, but I don't know what is missing.

Upon request, here is xlocale.h, minus copyright, which is an Open Group.

#include <X11/Xfuncproto.h>
#include <X11/Xosdefs.h>

#ifndef X_LOCALE
#include <locale.h>
#else

#define LC_ALL      0
#define LC_COLLATE  1
#define LC_CTYPE    2
#define LC_MONETARY 3
#define LC_NUMERIC  4
#define LC_TIME     5

_XFUNCPROTOBEGIN
    extern char *_Xsetlocale(
    int /* category */,
    _Xconst char* /* name */
);
_XFUNCPROTOEND

#define setlocale _Xsetlocale

#include <stddef.h>

#endif /* X_LOCALE */
+3
source share
2 answers

, , , libintl, . , uclibc . typedef void *locale_t; - .

.. . locale_t POSIX POSIX 2008, , libgtk1.2; GNU. , , configure , .

+1

Mac OS X. <xlocale.h>, <X11/Xlocale.h>, _XLOCALE_H_ include. - , , . , /usr/include/X11/Xlocale.h include _X11_XLOCALE_H_.

​​ , Mac OS X.

0

Source: https://habr.com/ru/post/1752773/


All Articles