Add polintos config to STLport.
authorScott Wood <scott@thor.buserror.net>
Mon, 10 Dec 2007 00:31:45 +0000 (18:31 -0600)
committerScott Wood <scott@thor.buserror.net>
Mon, 10 Dec 2007 00:31:45 +0000 (18:31 -0600)
Makefile.target
include/c++/stl/stl/config/_polintos.h [new file with mode: 0644]
include/c++/stl/stl/config/_system.h

index 6da0ecfa4bb439066142467200e5696ba2ce1e8b..d407129cf7e4fdbe72dd9785bcac6a5dc2746aef 100644 (file)
@@ -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 (file)
index 0000000..ea77078
--- /dev/null
@@ -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
index c0261dffc766ab4ca16d91f36b85d36d2b847eb2..b0cddeba6dd006069cbc14f403dd88f71b9a07dc 100644 (file)
 #ifndef __stl_config__system_h
 #define __stl_config__system_h
 
-#if defined (__sun)
+#if defined (polintos)
+#  include <stl/config/_polintos.h>
+#  if defined (__GNUC__)
+#    include <stl/config/_gcc.h>
+#  endif
+#elif defined (__sun)
 #  include <stl/config/_solaris.h>
 #  if defined (__GNUC__)
 #    include <stl/config/_gcc.h>