Changeset 773 for branches/samba-3.5.x/lib/replace/replace.h
- Timestamp:
- Jul 2, 2013, 7:27:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/lib/replace/replace.h
r414 r773 141 141 #endif 142 142 143 #ifndef HAVE_MEMMEM 144 #define memmem rep_memmem 145 void *rep_memmem(const void *haystack, size_t haystacklen, 146 const void *needle, size_t needlelen); 147 #endif 148 143 149 #ifndef HAVE_MKTIME 144 150 #define mktime rep_mktime … … 351 357 #endif 352 358 353 #ifndef HAVE_VASPRINTF 359 #if !defined(HAVE_VDPRINTF) || !defined(HAVE_C99_VSNPRINTF) 360 #define vdprintf rep_vdprintf 361 int 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 366 int rep_dprintf(int fd, const char *format, ...) PRINTF_ATTRIBUTE(2,3); 367 #endif 368 369 #if !defined(HAVE_VASPRINTF) || !defined(HAVE_C99_VSNPRINTF) 354 370 #define vasprintf rep_vasprintf 355 371 int rep_vasprintf(char **ptr, const char *format, va_list ap) PRINTF_ATTRIBUTE(2,0); … … 366 382 #endif 367 383 368 #if ndef HAVE_ASPRINTF384 #if !defined(HAVE_ASPRINTF) || !defined(HAVE_C99_VSNPRINTF) 369 385 #define asprintf rep_asprintf 370 386 int 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 399 int rep_printf(const char *, ...) PRINTF_ATTRIBUTE(1,2); 400 #endif 401 402 #if !defined(HAVE_C99_VSNPRINTF) 403 #define fprintf rep_fprintf 404 int rep_fprintf(FILE *stream, const char *, ...) PRINTF_ATTRIBUTE(2,3); 371 405 #endif 372 406
Note:
See TracChangeset
for help on using the changeset viewer.