Changeset 480 in Sophya for trunk/SophyaLib/BaseTools/machdefs.h


Ignore:
Timestamp:
Oct 20, 1999, 12:25:32 PM (26 years ago)
Author:
ansari
Message:

MAJ / PEIDA 3.8 , Reza 20/10/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/machdefs.h

    r269 r480  
    2626#endif
    2727
    28 #ifdef sun
     28#if defined(SunOS)  || defined ( sun )
    2929#define MACH_SUN
    3030#define OS_SOLARIS
     
    142142  typedef unsigned long long uint_8;
    143143
     144#ifdef powerpc
     145#define SWAP 0
     146#define SWAPDEFAUT 0
     147#else
    144148#define  SWAP 1
    145149#define  SWAPDEFAUT   1
     150#endif
    146151
    147152#elif defined(OS_MACOS)
     
    183188/*    __aCC__      : aCC on HP                                         */
    184189/*    __KCC__      : KCC, version >= 3.3 is required                   */
     190/*    __SGICC__    : SGI (IRIX64) CC compiler                          */
    185191
    186192/***********************************************************************/
     
    201207/*   HAS_IOS_NOCREATE                                                      */
    202208/*   HAS_VEC_NEW           : operator new[]                                */
     209/*   CC_HAS_RTTI_SUPPORT     has Run Time Type Identification support      */
    203210/*   ANSI_IO               : rdbuf()->pubseekoff rather than seekg         */
    204211/*   HAS_STR_NPOS          : has string::npos and not a global NPOS        */
     
    214221#ifndef COMPILER_EXCEPTIONS
    215222#define COMPILER_EXCEPTIONS
     223#endif
     224
     225#ifndef  CC_HAS_RTTI_SUPPORT
     226#define  CC_HAS_RTTI_SUPPORT
    216227#endif
    217228
     
    246257
    247258#if defined (__aCC__) 
    248 #ifndef COMPILER_EXCEPTIONS
    249 #define COMPILER_EXCEPTIONS
    250 #endif
    251259#ifndef ANSI_TEMPLATES
    252260#define ANSI_TEMPLATES
     
    258266#define STREAMPOS_IS_CLASS
    259267#define HAS_STR_NPOS
    260 #ifndef COMPILER_EXCEPTIONS
    261 #define COMPILER_EXCEPTIONS
    262 #endif
    263268#ifndef ANSI_TEMPLATES
    264269#define ANSI_TEMPLATES
    265270#endif
    266 #endif
    267 
     271/* Standard C++ library classes are in the namespace std  */
     272#ifdef __cplusplus
     273namespace std { }
     274using namespace std;
     275#endif
     276#endif
     277
     278#if defined(__SGICC__)
     279/* Standard C++ library classes are in the namespace std  */
     280#define HAS_STR_NPOS
     281#ifndef ANSI_TEMPLATES
     282#define ANSI_TEMPLATES
     283#endif
     284#ifdef __cplusplus
     285namespace std { }
     286using namespace std;
     287#endif
     288#endif
    268289
    269290/* Get things has homogeneous as possible between compilers */
Note: See TracChangeset for help on using the changeset viewer.