VirtualBox

Changeset 3281

Show
Ignore:
Timestamp:
06/25/07 18:19:10 (2 years ago)
Author:
vboxsync
Message:

Made cdefs.h and type.h work with IBM Visual Age for C++ (3.08)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/iprt/cdefs.h

    r3162 r3281  
    412412 * @param   type    The return type of the function declaration. 
    413413 */ 
    414 #if defined(_MSC_VER) || defined(__OS2__
     414#if defined(_MSC_VER) || (defined(__OS2__) && !defined(__IBMC__) && !defined(__IBMCPP__)
    415415# define DECLIMPORT(type)       __declspec(dllimport) type 
    416416#else 
     
    512512#elif defined(_MSC_VER) 
    513513# define DECLINLINE(type) _inline type 
     514#elif defined(__IBMC__) 
     515# define DECLINLINE(type) _Inline type 
    514516#else 
    515517# define DECLINLINE(type) inline type 
     
    10721074#ifdef _MSC_VER 
    10731075# define Breakpoint()           __asm int 3 
     1076#endif 
     1077#if defined(__IBMC__) || defined(__IBMCPP__) 
     1078# define Breakpoint()           __interrupt(3) 
    10741079#endif 
    10751080#ifndef Breakpoint 
  • trunk/include/iprt/stdint.h

    r2981 r3281  
    3838#include <iprt/cdefs.h> 
    3939 
    40 #if (!defined(__LINUX__) || !defined(__KERNEL__)) && !defined(_MSC_VER) && !defined(IPRT_NO_CRT) 
     40#if (!defined(__LINUX__) || !defined(__KERNEL__)) && !defined(_MSC_VER) && !defined(__IBMC__) && !defined(__IBMCPP__) && !defined(IPRT_NO_CRT) 
    4141# include <stdint.h> 
    4242 
     
    5656typedef unsigned _int64     __uint64_t; 
    5757# else 
     58#  if defined(__IBMC__) || defined(__IBMCPP__) /* assume VAC308 without long long. */ 
     59typedef struct { __uint32_t lo,hi; } __int64_t, __uint64_t; 
     60#  else 
    5861typedef long long       __int64_t; 
    5962typedef unsigned long long  __uint64_t; 
     63#  endif 
    6064# endif 
    6165#endif /* !linux kernel */ 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy