Ticket #347: stdint.diff

File stdint.diff, 720 bytes (added by KO Myung-Hun, 9 years ago)

Patch to make stdint.h be aware of C++11

  • _stdint.h

    diff -uNr  _stdint.h.org _stdint.h
    old new  
    4444#ifndef _MACHINE__STDINT_H_
    4545#define _MACHINE__STDINT_H_
    4646
    47 #if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS)
     47#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) || \
     48    __cplusplus >= 201103L
    4849
    4950#define INT8_C(c)               (c)
    5051#define INT16_C(c)              (c)
     
    6162
    6263#endif /* !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) */
    6364
    64 #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
     65#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) || \
     66    __cplusplus >= 201103L
    6567
    6668/*
    6769 * ISO/IEC 9899:1999