summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3-internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'xdelta3/xdelta3-internal.h')
-rw-r--r--xdelta3/xdelta3-internal.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/xdelta3/xdelta3-internal.h b/xdelta3/xdelta3-internal.h
index e9fc5f3..e0c561f 100644
--- a/xdelta3/xdelta3-internal.h
+++ b/xdelta3/xdelta3-internal.h
@@ -64,7 +64,7 @@ xd3_output* xd3_alloc_output (xd3_stream *stream,
64 64
65int xd3_encode_init_full (xd3_stream *stream); 65int xd3_encode_init_full (xd3_stream *stream);
66usize_t xd3_pow2_roundup (usize_t x); 66usize_t xd3_pow2_roundup (usize_t x);
67long get_millisecs_now (); 67long get_millisecs_now (void);
68int xd3_process_stream (int is_encode, 68int xd3_process_stream (int is_encode,
69 xd3_stream *stream, 69 xd3_stream *stream,
70 int (*func) (xd3_stream *), 70 int (*func) (xd3_stream *),
@@ -153,15 +153,12 @@ typedef struct {
153 153
154/* Prior to SVN 303 this function was only defined in DJGPP and WIN32 154/* Prior to SVN 303 this function was only defined in DJGPP and WIN32
155 * environments and other platforms would use the builtin snprintf() 155 * environments and other platforms would use the builtin snprintf()
156 * with an arrangement of macros below. In OS X 10.6, Apply made 156 * with an arrangement of macros below. In OS X 10.6, Apple made
157 * snprintf() a macro, which defeated those macros (since snprintf 157 * snprintf() a macro, which defeated those macros (since snprintf
158 * would be evaluated before its argument macros were expanded, 158 * would be evaluated before its argument macros were expanded,
159 * therefore always define xsnprintf_func. */ 159 * therefore always define xsnprintf_func. */
160#undef PRINTF_ATTRIBUTE 160#ifndef PRINTF_ATTRIBUTE
161#ifdef __GNUC__
162#define PRINTF_ATTRIBUTE(x,y) __attribute__ ((__format__ (__printf__, x, y))) 161#define PRINTF_ATTRIBUTE(x,y) __attribute__ ((__format__ (__printf__, x, y)))
163#else
164#define PRINTF_ATTRIBUTE(x,y)
165#endif 162#endif
166 163
167/* Underlying xprintf() */ 164/* Underlying xprintf() */