Main Page | Class Hierarchy | Class List | File List | Class Members

classad_stl.h

00001 /*********************************************************************
00002  *
00003  * Condor ClassAd library
00004  * Copyright (C) 1990-2003, Condor Team, Computer Sciences Department,
00005  * University of Wisconsin-Madison, WI and Rajesh Raman.
00006  *
00007  * This source code is covered by the Condor Public License, which can
00008  * be found in the accompanying LICENSE file, or online at
00009  * www.condorproject.org.
00010  *
00011  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00012  * AND THE UNIVERSITY OF WISCONSIN-MADISON "AS IS" AND ANY EXPRESS OR
00013  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00014  * WARRANTIES OF MERCHANTABILITY, OF SATISFACTORY QUALITY, AND FITNESS
00015  * FOR A PARTICULAR PURPOSE OR USE ARE DISCLAIMED. THE COPYRIGHT
00016  * HOLDERS AND CONTRIBUTORS AND THE UNIVERSITY OF WISCONSIN-MADISON
00017  * MAKE NO MAKE NO REPRESENTATION THAT THE SOFTWARE, MODIFICATIONS,
00018  * ENHANCEMENTS OR DERIVATIVE WORKS THEREOF, WILL NOT INFRINGE ANY
00019  * PATENT, COPYRIGHT, TRADEMARK, TRADE SECRET OR OTHER PROPRIETARY
00020  * RIGHT.
00021  *
00022  *********************************************************************/
00023 
00024 #ifndef __CLASSAD_STL_H__
00025 #define __CLASSAD_STL_H__
00026 
00027 #ifdef __GNUC__
00028   #if (__GNUC__<3)
00029     #include <hash_map>
00030     #include <slist>
00031   #else
00032     #include <ext/hash_map>
00033     #include <ext/slist>
00034     using namespace __gnu_cxx;
00035   #endif
00036 #elif defined(WIN32)
00037   #include <hash_map>
00038   #include <slist>
00039 #else
00040   #include <hash_map>
00041 #endif
00042         
00043 
00044 #ifdef __GNUC__
00045   #if (__GNUC__ == 3 && __GNUC_MINOR__ > 0)
00046     #define classad_hash_map __gnu_cxx::hash_map 
00047     #define classad_slist    __gnu_cxx::slist
00048   #else
00049     #define classad_hash_map std::hash_map 
00050     #define classad_slist    std::slist
00051   #endif
00052 #elif defined (WIN32)
00053   #define classad_hash_map std::hash_map
00054   #define classad_slist std::slist
00055 #else
00056   #define classad_hash_map std::hash_map 
00057   #define classad_slist    std::slist
00058 #endif
00059 
00060 #endif /* __CLASSAD_STL_H__ */