Ignore:
Timestamp:
Jul 2, 2013, 7:27:06 PM (12 years ago)
Author:
Herwig Bauernfeind
Message:

Samba Server 3.5: Update branch to 3.5.20

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.5.x/lib/replace/replace.h

    r414 r773  
    141141#endif
    142142
     143#ifndef HAVE_MEMMEM
     144#define memmem rep_memmem
     145void *rep_memmem(const void *haystack, size_t haystacklen,
     146                 const void *needle, size_t needlelen);
     147#endif
     148
    143149#ifndef HAVE_MKTIME
    144150#define mktime rep_mktime
     
    351357#endif
    352358
    353 #ifndef HAVE_VASPRINTF
     359#if !defined(HAVE_VDPRINTF) || !defined(HAVE_C99_VSNPRINTF)
     360#define vdprintf rep_vdprintf
     361int rep_vdprintf(int fd, const char *format, va_list ap) PRINTF_ATTRIBUTE(2,0);
     362#endif
     363
     364#if !defined(HAVE_DPRINTF) || !defined(HAVE_C99_VSNPRINTF)
     365#define dprintf rep_dprintf
     366int rep_dprintf(int fd, const char *format, ...) PRINTF_ATTRIBUTE(2,3);
     367#endif
     368
     369#if !defined(HAVE_VASPRINTF) || !defined(HAVE_C99_VSNPRINTF)
    354370#define vasprintf rep_vasprintf
    355371int rep_vasprintf(char **ptr, const char *format, va_list ap) PRINTF_ATTRIBUTE(2,0);
     
    366382#endif
    367383
    368 #ifndef HAVE_ASPRINTF
     384#if !defined(HAVE_ASPRINTF) || !defined(HAVE_C99_VSNPRINTF)
    369385#define asprintf rep_asprintf
    370386int rep_asprintf(char **,const char *, ...) PRINTF_ATTRIBUTE(2,3);
     387#endif
     388
     389#if !defined(HAVE_C99_VSNPRINTF)
     390#ifdef REPLACE_BROKEN_PRINTF
     391/*
     392 * We do not redefine printf by default
     393 * as it breaks the build if system headers
     394 * use __attribute__((format(printf, 3, 0)))
     395 * instead of __attribute__((format(__printf__, 3, 0)))
     396 */
     397#define printf rep_printf
     398#endif
     399int rep_printf(const char *, ...) PRINTF_ATTRIBUTE(1,2);
     400#endif
     401
     402#if !defined(HAVE_C99_VSNPRINTF)
     403#define fprintf rep_fprintf
     404int rep_fprintf(FILE *stream, const char *, ...) PRINTF_ATTRIBUTE(2,3);
    371405#endif
    372406
Note: See TracChangeset for help on using the changeset viewer.