From: Scott Wood Date: Mon, 10 Dec 2007 00:31:45 +0000 (-0600) Subject: Add polintos config to STLport. X-Git-Url: http://git.buserror.net/cgi-bin/gitweb.cgi?p=polintos%2Fscott%2Fpriv.git;a=commitdiff_plain;h=9fa824211a5dcb9a87d18b45d604599748dbff6c Add polintos config to STLport. --- diff --git a/Makefile.target b/Makefile.target index 6da0ecf..d407129 100644 --- a/Makefile.target +++ b/Makefile.target @@ -10,13 +10,13 @@ DEFS := $(EXTRADEFS) ifeq ($(ARCH),x86) CROSS := i686-polintos- -DEFS += -DBITFIELD_LE +DEFS += -DBITFIELD_LE -D__LITTLE_ENDIAN VALIDARCH := yes endif ifeq ($(ARCH),x64) CROSS := x86_64-polintos- -DEFS += -DBITFIELD_LE +DEFS += -DBITFIELD_LE -D__LITTLE_ENDIAN VALIDARCH := yes endif diff --git a/include/c++/stl/stl/config/_polintos.h b/include/c++/stl/stl/config/_polintos.h new file mode 100644 index 0000000..ea77078 --- /dev/null +++ b/include/c++/stl/stl/config/_polintos.h @@ -0,0 +1,18 @@ +#ifndef __stl_config__polintos_h +#define __stl_config__polintos_h + +#define _STLP_PLATFORM "PolIntOS" +#define _STLP_THREADS + +#ifdef __LITTLE_ENDIAN +#define _STLP_LITTLE_ENDIAN 1 +#elif defined(__BIG_ENDIAN) +#define _STLP_BIG_ENDIAN 1 +#else +#error Unknown endianness +#endif + +#define _STLP_NATIVE_INCLUDE_PATH ../std +#define _STLP_NATIVE_C_INCLUDE_PATH ../../c/std + +#endif diff --git a/include/c++/stl/stl/config/_system.h b/include/c++/stl/stl/config/_system.h index c0261df..b0cddeb 100644 --- a/include/c++/stl/stl/config/_system.h +++ b/include/c++/stl/stl/config/_system.h @@ -36,7 +36,12 @@ #ifndef __stl_config__system_h #define __stl_config__system_h -#if defined (__sun) +#if defined (polintos) +# include +# if defined (__GNUC__) +# include +# endif +#elif defined (__sun) # include # if defined (__GNUC__) # include