Ticket #35728: patch-stdsoap2.h.diff

File patch-stdsoap2.h.diff, 613 bytes (added by ajdudman, 12 years ago)

patch <gsoap/stdsoap2.h> SOAP_NEW(type) macro for use by Apple gcc-4.2 in SL

  • gsoap/stdsoap2.h

    old new  
    14001400#endif
    14011401
    14021402#ifndef SOAP_NEW                                /* use C++ new operator */
    1403 # if (defined(__GNUC__) && (__GNUC__ <= 2) && !defined(__BORLANDC__)) || defined(__clang__) || defined(_AIX)
     1403# if (defined(__GNUC__) && (__GNUC__ <= 2) && !defined(__BORLANDC__)) || defined(__APPLE_CC__) && (__APPLE_CC__ <= 5666) || defined(__clang__) || defined(_AIX)
    14041404#  define SOAP_NEW(type) new type               /* old form w/o parenthesis */
    14051405# else
    14061406#  define SOAP_NEW(type) new (type)             /* prefer with parenthesis */