This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 359 for ps


Ignore:
Timestamp:
06/02/04 18:28:12 (21 years ago)
Author:
Simon Brenner
Message:

Extended the hash_map kludge to detect gcc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/simulation/EntityProperties.h

    r284 r359  
    1616#define ENTITY_PROPERTIES_INCLUDED
    1717
    18 #if( defined( _MSC_VER ) && ( _MSC_VER >= 1300 ) )
    19 
    20 #define STL_HASH_MAP stdext::hash_map
    21 
    22 #else
    23 
    24 #define STL_HASH_MAP std::hash_map
    25 
    26 #endif //( defined( _MSC_VER ) && ( _MSC_VER >= 1300 ) )
    27 
    2818#include "CStr.h"
    2919#include "Vector3D.h"
    3020
    31 #include <hash_map>
     21#ifndef __GNUC__
     22
     23# include <hash_map>
     24
     25# if( defined( _MSC_VER ) && ( _MSC_VER >= 1300 ) )
     26#  define STL_HASH_MAP stdext::hash_map
     27# else
     28#  define STL_HASH_MAP std::hash_map
     29# endif //( defined( _MSC_VER ) && ( _MSC_VER >= 1300 ) )
     30
     31#else // #ifndef __GNUC__
     32
     33# include <ext/hash_map>
     34# define STL_HASH_MAP __gnu_cxx::hash_map
     35
     36#endif
    3237
    3338class CGenericProperty
Note: See TracChangeset for help on using the changeset viewer.