Commits

Anonymous committed 1fab77f

ENH: Improved header support to reduce number of macros needed on GCCXML command line. Now the macros defined by the SGI compiler when it runs should be sufficient.

Comments (0)

Files changed (2)

GCC_XML/MproInclude/stl_threads.h

+#ifndef __SGI_STL_INTERNAL_THREADS_H_GCCXML
+#define __SGI_STL_INTERNAL_THREADS_H_GCCXML
+
+#define __add_and_fetch(__l,__v) add_then_test((unsigned long*)__l,__v)  
+#define __test_and_set(__l,__v)  test_and_set(__l,__v)
+#define __lock_release(__l) asm("sync"); *__l = 0
+
+#include_next <stl_threads.h>
+
+#endif
+

GCC_XML/MproInclude/string

-#ifndef __SGI_STL_STRING_B
-#define __SGI_STL_STRING_B
+#ifndef __SGI_STL_STRING_GCCXML
+#define __SGI_STL_STRING_GCCXML
 
 #include <stl_config.h>
 
 
 #include_next <string>
 
-#endif /* __SGI_STL_STRING_B */
+#endif