diff options
Diffstat (limited to 'libX11/src/xlibi18n')
-rw-r--r-- | libX11/src/xlibi18n/XDefaultIMIF.c | 1 | ||||
-rw-r--r-- | libX11/src/xlibi18n/XDefaultOMIF.c | 2 | ||||
-rw-r--r-- | libX11/src/xlibi18n/XimProto.h | 7 | ||||
-rw-r--r-- | libX11/src/xlibi18n/lcDB.c | 3 | ||||
-rw-r--r-- | libX11/src/xlibi18n/lcDynamic.c | 2 | ||||
-rw-r--r-- | libX11/src/xlibi18n/lcFile.c | 2 | ||||
-rw-r--r-- | libX11/src/xlibi18n/lcGeneric.c | 1 | ||||
-rw-r--r-- | libX11/src/xlibi18n/lcPublic.c | 1 | ||||
-rw-r--r-- | libX11/src/xlibi18n/lcUTF8.c | 1 | ||||
-rw-r--r-- | libX11/src/xlibi18n/makefile | 37 |
10 files changed, 55 insertions, 2 deletions
diff --git a/libX11/src/xlibi18n/XDefaultIMIF.c b/libX11/src/xlibi18n/XDefaultIMIF.c index db0f5d1fa..f271bded1 100644 --- a/libX11/src/xlibi18n/XDefaultIMIF.c +++ b/libX11/src/xlibi18n/XDefaultIMIF.c @@ -64,6 +64,7 @@ Sun Microsystems, Inc. or its licensors is granted. #include <config.h> #endif #include <stdio.h> +#include <unistd.h> #include "Xlibint.h" #include "Xlcint.h" #include "XlcGeneric.h" diff --git a/libX11/src/xlibi18n/XDefaultOMIF.c b/libX11/src/xlibi18n/XDefaultOMIF.c index a06f69a1f..2ff6c414c 100644 --- a/libX11/src/xlibi18n/XDefaultOMIF.c +++ b/libX11/src/xlibi18n/XDefaultOMIF.c @@ -69,6 +69,8 @@ Sun Microsystems, Inc. or its licensors is granted. #include <X11/Xos.h> #include <X11/Xatom.h> #include <stdio.h> +#include <unistd.h> +#include <stdint.h> #define MAXFONTS 100 diff --git a/libX11/src/xlibi18n/XimProto.h b/libX11/src/xlibi18n/XimProto.h index 6b0096dd6..9551301a2 100644 --- a/libX11/src/xlibi18n/XimProto.h +++ b/libX11/src/xlibi18n/XimProto.h @@ -143,6 +143,13 @@ PERFORMANCE OF THIS SOFTWARE. /* * byte order */ +#ifdef BIGENDIAN +#undef BIGENDIAN +#endif +#ifdef LITTLEENDIAN +#undef LITTLEENDIAN +#endif + #define BIGENDIAN (CARD8)0x42 /* MSB first */ #define LITTLEENDIAN (CARD8)0x6c /* LSB first */ diff --git a/libX11/src/xlibi18n/lcDB.c b/libX11/src/xlibi18n/lcDB.c index fda3ae7e3..fca9758d8 100644 --- a/libX11/src/xlibi18n/lcDB.c +++ b/libX11/src/xlibi18n/lcDB.c @@ -48,6 +48,8 @@ #endif /* NOT_X_ENV */ +#include <stdint.h> + /* specifying NOT_X_ENV allows users to just use the database parsing routine. */ /* For UDC/VW */ @@ -63,6 +65,7 @@ #endif #include <stdio.h> +#include <unistd.h> typedef struct _DatabaseRec { char *category; diff --git a/libX11/src/xlibi18n/lcDynamic.c b/libX11/src/xlibi18n/lcDynamic.c index 3821bfff1..a50aa70fa 100644 --- a/libX11/src/xlibi18n/lcDynamic.c +++ b/libX11/src/xlibi18n/lcDynamic.c @@ -51,7 +51,7 @@ from The Open Group. #include "Xlcint.h" #ifndef XLOCALEDIR -#define XLOCALEDIR "/usr/lib/X11/locale" +#define XLOCALEDIR "locale" #endif #define LCLIBNAME "xi18n.so" diff --git a/libX11/src/xlibi18n/lcFile.c b/libX11/src/xlibi18n/lcFile.c index bf8908458..c3ea02ead 100644 --- a/libX11/src/xlibi18n/lcFile.c +++ b/libX11/src/xlibi18n/lcFile.c @@ -192,7 +192,7 @@ _XlcParsePath( } #ifndef XLOCALEDIR -#define XLOCALEDIR "/usr/lib/X11/locale" +#define XLOCALEDIR "locale" #endif void diff --git a/libX11/src/xlibi18n/lcGeneric.c b/libX11/src/xlibi18n/lcGeneric.c index 20c455c13..13405a65b 100644 --- a/libX11/src/xlibi18n/lcGeneric.c +++ b/libX11/src/xlibi18n/lcGeneric.c @@ -32,6 +32,7 @@ #include <config.h> #endif #include <stdio.h> +#include <unistd.h> #include "Xlibint.h" #include "XlcGeneric.h" diff --git a/libX11/src/xlibi18n/lcPublic.c b/libX11/src/xlibi18n/lcPublic.c index 39ec0829b..46c652e2b 100644 --- a/libX11/src/xlibi18n/lcPublic.c +++ b/libX11/src/xlibi18n/lcPublic.c @@ -27,6 +27,7 @@ #include <config.h> #endif #include <stdio.h> +#include <unistd.h> #include "Xlibint.h" #include "XlcPubI.h" diff --git a/libX11/src/xlibi18n/lcUTF8.c b/libX11/src/xlibi18n/lcUTF8.c index 0f3d0d2ca..930edcb18 100644 --- a/libX11/src/xlibi18n/lcUTF8.c +++ b/libX11/src/xlibi18n/lcUTF8.c @@ -75,6 +75,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include <config.h> #endif #include <stdio.h> +#include <unistd.h> #include "Xlibint.h" #include "XlcPubI.h" #include "XlcGeneric.h" diff --git a/libX11/src/xlibi18n/makefile b/libX11/src/xlibi18n/makefile new file mode 100644 index 000000000..01fcfa26d --- /dev/null +++ b/libX11/src/xlibi18n/makefile @@ -0,0 +1,37 @@ +LIBRARY = libi18n + +INCLUDES += ..\..\include\X11 .. +DEFINES += XLOCALELIBDIR="\".\"" LIB11_DLL + +CSRCS = \ + $(XI18N_DL_SOURCES) \ + XDefaultIMIF.c \ + XDefaultOMIF.c \ + xim_trans.c\ + ICWrap.c\ + IMWrap.c\ + imKStoUCS.c\ + lcCT.c\ + lcCharSet.c\ + lcConv.c\ + lcDB.c\ + lcDynamic.c\ + lcFile.c\ + lcGeneric.c\ + lcInit.c\ + lcPrTxt.c\ + lcPubWrap.c\ + lcPublic.c\ + lcRM.c\ + lcStd.c\ + lcTxtPr.c\ + lcUTF8.c\ + lcUtil.c\ + lcWrap.c\ + mbWMProps.c\ + mbWrap.c\ + utf8WMProps.c\ + utf8Wrap.c\ + wcWrap.c + + |