VirtualBox

Changeset 666 in vbox for trunk/include/iprt/nocrt/compiler


Ignore:
Timestamp:
Feb 6, 2007 2:46:38 AM (18 years ago)
Author:
vboxsync
Message:

Messing with the nocrt setup...

Location:
trunk/include/iprt/nocrt/compiler
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nocrt/compiler/gcc.h

    r661 r666  
    3030#define _SIZE_T_DECLARED
    3131
    32 #ifdef __SSIZE_TYPE__
    33 typedef __SSIZE_TYPE__ ssize_t; 
    34 #elif ARCH_BITS == 32
    35 typedef int32_t ssize_t;
    36 #elif ARCH_BITS == 64
    37 typedef int64_t ssize_t;
    38 #else
    39 # define ARCH_BITS 123123
    40 # error "ARCH_BITS is undefined or incorrect."
    41 #endif
    42 #define _SSIZE_T_DECLARED
    43 
    44 #ifdef __WCHAR_TYPE__
     32#ifndef __cplusplus
     33# ifdef __WCHAR_TYPE__
    4534typedef __WCHAR_TYPE__ wchar_t;
    46 #elif defined(__OS2__) || defined(__WIN__)
     35# elif defined(__OS2__) || defined(__WIN__)
    4736typedef uint16_t wchar_t;
    48 #else
     37# else
    4938typedef int wchar_t;
     39# endif
     40# define _WCHAR_T_DECLARED
    5041#endif
    51 #define _WCHAR_T_DECLARED
    5242
    5343#ifdef __WINT_TYPE__
     
    7666#endif                                       
    7767
     68
     69/* sys/types.h */
     70#ifdef __SSIZE_TYPE__
     71typedef __SSIZE_TYPE__ ssize_t; 
     72#elif ARCH_BITS == 32
     73typedef int32_t ssize_t;
     74#elif ARCH_BITS == 64
     75typedef int64_t ssize_t;
     76#else
     77# define ARCH_BITS 123123
     78# error "ARCH_BITS is undefined or incorrect."
     79#endif
     80#define _SSIZE_T_DECLARED
     81
     82
     83/* stdarg.h */
     84typedef __builtin_va_list   va_list;
     85#define va_start(va, arg)   __builtin_va_start(va, arg)
     86#define va_end(va)          __builtin_va_end(va)
     87#define va_arg(va, type)    __builtin_va_arg(va, type)
     88#define va_copy(dst, src)   __builtin_va_copy(dst, src)
     89
     90
    7891#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette