From 9fa824211a5dcb9a87d18b45d604599748dbff6c Mon Sep 17 00:00:00 2001 From: Scott Wood Date: Sun, 9 Dec 2007 18:31:45 -0600 Subject: [PATCH] Add polintos config to STLport. --- Makefile.target | 4 ++-- include/c++/stl/stl/config/_polintos.h | 18 ++++++++++++++++++ include/c++/stl/stl/config/_system.h | 7 ++++++- 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 include/c++/stl/stl/config/_polintos.h 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 -- 2.39.2