Ignore:
Timestamp:
May 12, 2014, 8:58:38 PM (11 years ago)
Author:
Silvan Scherrer
Message:

Samba 3.6: updated vendor to latest version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/lib/replace/replace.h

    r746 r860  
    356356#endif
    357357
    358 #ifndef HAVE_VDPRINTF
    359 #define vdprintf rep_vdprintf
    360 int rep_vdprintf(int fd, const char *format, va_list ap);
    361 #endif
    362 
    363 #ifndef HAVE_DPRINTF
    364 #define dprintf rep_dprintf
    365 int rep_dprintf(int fd, const char *format, ...);
    366 #endif
    367 
    368358#ifndef PRINTF_ATTRIBUTE
    369359#if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
     
    386376#endif
    387377
    388 #ifndef HAVE_VASPRINTF
     378#if !defined(HAVE_VDPRINTF) || !defined(HAVE_C99_VSNPRINTF)
     379#define vdprintf rep_vdprintf
     380int rep_vdprintf(int fd, const char *format, va_list ap) PRINTF_ATTRIBUTE(2,0);
     381#endif
     382
     383#if !defined(HAVE_DPRINTF) || !defined(HAVE_C99_VSNPRINTF)
     384#define dprintf rep_dprintf
     385int rep_dprintf(int fd, const char *format, ...) PRINTF_ATTRIBUTE(2,3);
     386#endif
     387
     388#if !defined(HAVE_VASPRINTF) || !defined(HAVE_C99_VSNPRINTF)
    389389#define vasprintf rep_vasprintf
    390390int rep_vasprintf(char **ptr, const char *format, va_list ap) PRINTF_ATTRIBUTE(2,0);
     
    401401#endif
    402402
    403 #ifndef HAVE_ASPRINTF
     403#if !defined(HAVE_ASPRINTF) || !defined(HAVE_C99_VSNPRINTF)
    404404#define asprintf rep_asprintf
    405405int rep_asprintf(char **,const char *, ...) PRINTF_ATTRIBUTE(2,3);
     406#endif
     407
     408#if !defined(HAVE_C99_VSNPRINTF)
     409#ifdef REPLACE_BROKEN_PRINTF
     410/*
     411 * We do not redefine printf by default
     412 * as it breaks the build if system headers
     413 * use __attribute__((format(printf, 3, 0)))
     414 * instead of __attribute__((format(__printf__, 3, 0)))
     415 */
     416#define printf rep_printf
     417#endif
     418int rep_printf(const char *, ...) PRINTF_ATTRIBUTE(1,2);
     419#endif
     420
     421#if !defined(HAVE_C99_VSNPRINTF)
     422#define fprintf rep_fprintf
     423int rep_fprintf(FILE *stream, const char *, ...) PRINTF_ATTRIBUTE(2,3);
    406424#endif
    407425
Note: See TracChangeset for help on using the changeset viewer.