/*
** SellaNMS
** $Id: stl.h,v 1.2 2005/08/21 19:13:58 sella Exp $
** Copyright (c) 2001-2005 Digital Genesis Software, LLC. All Rights Reserved.
** Released under the GPL Version 2 License.
** http://www.digitalgenesis.com
*/

#ifndef __DGS_INCLUDE_STL_H
#define __DGS_INCLUDE_STL_H

#ifdef HAVE_CONFIG_H
	#include "config.h"
#endif

/* NOTE: The common/stl headers pull std, stlport and __gnu_cxx namespaces into sella_nms namespace as needed. */
namespace sella_nms { }
using namespace sella_nms;

/* Rename namespace example */
//namespace <old> = <new>

/* Configure STLPort. */
#ifdef HAVE_STLPORT
	#if defined _STLP_DEBUG_CHECK || defined _STLP_DEBUG_DO
	#error "Redefining _STLP_DEBUG_CHECK or _STLP_DEBUG_DO. Make sure <pthreads.h>, <signal.h> or <*.h> is included after defaults.h"
	#endif

	/* From: STLport/stlport/stl_user_config.h */
	#define _STLP_NO_OWN_IOSTREAMS 1
	#define _STLP_NO_NEW_IOSTREAMS 1

	#ifdef USE_STLP_SAFE_STL
		/* From: STLport/stlport/stl_user_config.h */
		#define _STLP_DEBUG 1 /* Enables "Safe STL" mode. */
		#define _STLP_DEBUG_UNINITIALIZED 1 /* Aids to locating uninitialized iterators. */ 
		/* From: stlport/stl/_site_config.h */
		#define _STLP_ASSERTIONS 1 /* Enables insertions. */
		#define _STLP_USE_MALLOC 1 /* Disables memory pool feature. */
		#define _STLP_DEBUG_ALLOC 1 /* Enables padding/checking for memory consistency. */
	#endif
#else
	#ifdef USE_DEBUG
// FIXME: This upsets gcc3. Probably because I'm upsetting the concept checks. Fix!
//		#define _GLIBCPP_CONCEPT_CHECKS 1
	#endif
#endif

#endif
