Changeset 862 for trunk/server/lib/replace/replace.h
- Timestamp:
- May 13, 2014, 11:39:04 AM (11 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 860
- Property svn:mergeinfo changed
-
trunk/server/lib/replace/replace.h
r752 r862 356 356 #endif 357 357 358 #ifndef HAVE_VDPRINTF359 #define vdprintf rep_vdprintf360 int rep_vdprintf(int fd, const char *format, va_list ap);361 #endif362 363 #ifndef HAVE_DPRINTF364 #define dprintf rep_dprintf365 int rep_dprintf(int fd, const char *format, ...);366 #endif367 368 358 #ifndef PRINTF_ATTRIBUTE 369 359 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 ) … … 386 376 #endif 387 377 388 #ifndef HAVE_VASPRINTF 378 #if !defined(HAVE_VDPRINTF) || !defined(HAVE_C99_VSNPRINTF) 379 #define vdprintf rep_vdprintf 380 int 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 385 int rep_dprintf(int fd, const char *format, ...) PRINTF_ATTRIBUTE(2,3); 386 #endif 387 388 #if !defined(HAVE_VASPRINTF) || !defined(HAVE_C99_VSNPRINTF) 389 389 #define vasprintf rep_vasprintf 390 390 int rep_vasprintf(char **ptr, const char *format, va_list ap) PRINTF_ATTRIBUTE(2,0); … … 401 401 #endif 402 402 403 #if ndef HAVE_ASPRINTF403 #if !defined(HAVE_ASPRINTF) || !defined(HAVE_C99_VSNPRINTF) 404 404 #define asprintf rep_asprintf 405 405 int 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 418 int rep_printf(const char *, ...) PRINTF_ATTRIBUTE(1,2); 419 #endif 420 421 #if !defined(HAVE_C99_VSNPRINTF) 422 #define fprintf rep_fprintf 423 int rep_fprintf(FILE *stream, const char *, ...) PRINTF_ATTRIBUTE(2,3); 406 424 #endif 407 425
Note:
See TracChangeset
for help on using the changeset viewer.