Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
7638 views
1
From: =?utf-8?q?=22Kan-Ru_Chen_=28=E9=99=B3=E4=BE=83=E5=A6=82=29=22?=
2
<[email protected]>
3
Date: Sat, 20 Sep 2014 23:02:09 +0800
4
Subject: Fix FTBFS with clang
5
6
---
7
include/mupdf/fitz/output.h | 2 +-
8
source/fitz/output.c | 8 ++++----
9
2 files changed, 5 insertions(+), 5 deletions(-)
10
11
diff --git a/include/mupdf/fitz/output.h b/include/mupdf/fitz/output.h
12
index 5bbf3d9..1a18bb2 100644
13
--- a/include/mupdf/fitz/output.h
14
+++ b/include/mupdf/fitz/output.h
15
@@ -15,7 +15,7 @@ struct fz_output_s
16
{
17
fz_context *ctx;
18
void *opaque;
19
- int (*printf)(fz_output *, const char *, va_list ap);
20
+ int (*printf_)(fz_output *, const char *, va_list ap);
21
int (*write)(fz_output *, const void *, int n);
22
void (*close)(fz_output *);
23
};
24
diff --git a/source/fitz/output.c b/source/fitz/output.c
25
index fe63de9..84f43ac 100644
26
--- a/source/fitz/output.c
27
+++ b/source/fitz/output.c
28
@@ -36,7 +36,7 @@ fz_new_output_with_file(fz_context *ctx, FILE *file)
29
fz_output *out = fz_malloc_struct(ctx, fz_output);
30
out->ctx = ctx;
31
out->opaque = file;
32
- out->printf = file_printf;
33
+ out->printf_ = file_printf;
34
out->write = file_write;
35
out->close = NULL;
36
return out;
37
@@ -58,7 +58,7 @@ fz_new_output_to_filename(fz_context *ctx, const char *filename)
38
out = fz_malloc_struct(ctx, fz_output);
39
out->ctx = ctx;
40
out->opaque = file;
41
- out->printf = file_printf;
42
+ out->printf_ = file_printf;
43
out->write = file_write;
44
out->close = file_close;
45
}
46
@@ -90,7 +90,7 @@ fz_printf(fz_output *out, const char *fmt, ...)
47
return 0;
48
49
va_start(ap, fmt);
50
- ret = out->printf(out, fmt, ap);
51
+ ret = out->printf_(out, fmt, ap);
52
va_end(ap);
53
54
return ret;
55
@@ -142,7 +142,7 @@ fz_new_output_with_buffer(fz_context *ctx, fz_buffer *buf)
56
fz_output *out = fz_malloc_struct(ctx, fz_output);
57
out->ctx = ctx;
58
out->opaque = buf;
59
- out->printf = buffer_printf;
60
+ out->printf_ = buffer_printf;
61
out->write = buffer_write;
62
out->close = NULL;
63
return out;
64
65