Ignore:
Timestamp:
Jan 4, 2006, 2:30:31 PM (20 years ago)
Author:
ansari
Message:

Modifs pour compilation avec g++ 4 (V >= 3.4) - Reza 4 Jan 2006

File:
1 edited

Legend:

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

    r2867 r2884  
    222222/*    __KCC__      : KCC, version >= 3.3 is required                   */
    223223/*    __SGICC__    : SGI (IRIX64) CC compiler                          */
     224/*    __INTEL_COMPILER :   : INTEL compiler                            */
     225/*    __IBMCPP__   : AIX (IBM) xlC c++ compiler                        */
    224226
    225227/***********************************************************************/
    226228/* Compiler-specific stuff                                             */
    227229/***********************************************************************/
    228 
    229 /* Some features will be *required* for Planck. Which ones ?               */
    230230 
    231231/*   ANSI_TEMPLATES        : use ANSI syntax for explicit templates        */
     
    245245/*   NO_IOS_COMPLEX        : does not have operator << defined for complex */
    246246/*   DECL_TEMP_SPEC        : Template specialization declaration           */
     247/*   TSNMLUPG4             : Two stage name look-up scheme (g++>3.4)       */
    247248
    248249
     
    269270#endif
    270271
     272/* Most compilers dot not implement two level name lookup for templates
     273   introduced by gcc >= 3.4
     274*/
     275#ifdef TSNMLUPG4
     276#undef TSNMLUPG4
     277#endif
    271278
    272279/* now the specific things */
     
    284291
    285292#ifdef __GNUG__
     293#define GCC_VERSION (__GNUC__ * 10000 \
     294                               + __GNUC_MINOR__ * 100 \
     295                               + __GNUC_PATCHLEVEL__)
    286296#define ANSI_TEMPLATES
    287297/*
     
    294304#define HAS_IOS_BIN
    295305#define HAS_IOS_NOCREATE
     306#if ( GCC_VERSION >= 30000 )
     307#undef  DECL_TEMP_SPEC
     308#define DECL_TEMP_SPEC template <>
     309#endif
     310#if ( GCC_VERSION >= 34000 )
     311/* Two level name look-up scheme for templates introduced from gcc 3.4 */
     312#define TSNMLUPG4
     313#endif
     314
    296315#endif
    297316
Note: See TracChangeset for help on using the changeset viewer.