Ignore:
Timestamp:
Feb 1, 2019, 9:57:09 PM (5 years ago)
Author:
coas-nagasima
Message:

TINETとSocket APIなどを更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asp3_tinet_ecnl_rx/trunk/musl-1.1.18/include/stdarg.h

    r337 r364  
    1010#include <bits/alltypes.h>
    1111
     12#if !defined(_MSC_VER) && !defined(__c2__)
     13
    1214#define va_start(v,l)   __builtin_va_start(v,l)
    1315#define va_end(v)       __builtin_va_end(v)
    1416#define va_arg(v,l)     __builtin_va_arg(v,l)
    1517#define va_copy(d,s)    __builtin_va_copy(d,s)
     18
     19#else
     20
     21#define _INTSIZEOF(n)          ((sizeof(n) + sizeof(int) - 1) & ~(sizeof(int) - 1))
     22
     23#define __crt_va_start(ap, v)   ((void)(ap = (va_list)&(v) + _INTSIZEOF(v)))
     24#define __crt_va_arg(ap, t)     (*(t*)((ap += _INTSIZEOF(t)) - _INTSIZEOF(t)))
     25#define __crt_va_end(ap)        ((void)(ap = (va_list)0))
     26
     27#define va_start __crt_va_start
     28#define va_arg   __crt_va_arg
     29#define va_end   __crt_va_end
     30#define va_copy(destination, source) ((destination) = (source))
     31
     32#endif
    1633
    1734#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.