Ignore:
Timestamp:
1999-01-19T14:38:20+13:00 (25 years ago)
Author:
rjmcnab
Message:

Made the source more portable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/lib/text_t.h

    r100 r114  
    1414#define TEXT_T_H
    1515
    16 #ifndef USE_OBJECTSPACE
     16#include "gsdlconf.h"
     17
     18#if defined(GSDL_USE_OBJECTSPACE)
     19#  include <ospace\std\vector>
     20#  include <ospace\std\list>
     21#  include <ospace\std\set>
     22#elif defined(GSDL_USE_STL_H)
     23#  include <vector.h>
     24#  include <list.h>
     25#  include <set.h>
     26#else
    1727#  include <vector>
    1828#  include <list>
    1929#  include <set>
    20 #else
    21 #  include <ospace\std\vector>
    22 #  include <ospace\std\list>
    23 #  include <ospace\std\set>
    2430#endif
    2531
    2632// use the standard namespace
    27 #ifdef __GNUG__
    28 // namespaces are broken in current version of gcc
    29 #else
    30 #  ifndef USE_OBJECTSPACE
     33#if defined(GSDL_USE_OBJECTSPACE)
     34using namespace ospace::std;
     35#elif !defined(GSDL_NAMESPACE_BROKEN)
    3136using namespace std;
    32 #  else
    33 #    ifndef OS_NO_NAMESPACE
    34 using namespace ospace::std;
    35 #    endif
    36 #  endif
    3737#endif
    3838
     
    4242class outconvertclass;
    4343
     44
     45// just in case the compiler requires it :-)
     46inline void destroy(unsigned short *) {};
    4447
    4548typedef vector<unsigned short> usvector;
Note: See TracChangeset for help on using the changeset viewer.