diff options
author | Christian Persch <chpe@src.gnome.org> | 2021-12-08 13:13:29 +0100 |
---|---|---|
committer | Albert Astals Cid <tsdgeos@yahoo.es> | 2021-12-15 16:48:43 +0000 |
commit | eae2b1f08c87979385c9c0d0ad4b4f7a3f6e0802 (patch) | |
tree | ea98f21f49bcae57ca8783980fc3916f8bd0d59b /glib/poppler-attachment.cc | |
parent | 87b2436275c19b23dd3b50c5ed2cc83cc0a514f6 (diff) |
glib: Remove FD-taking functions on windows
They don't compile, and are not useful on windows anyway. Remove the
functions completely, not just stub out their implementation, since
otherwise the API contract of consuming the FD would be violated.
https://gitlab.freedesktop.org/poppler/poppler/-/issues/1180
Diffstat (limited to 'glib/poppler-attachment.cc')
-rw-r--r-- | glib/poppler-attachment.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/glib/poppler-attachment.cc b/glib/poppler-attachment.cc index 2af11044..f97cb5b8 100644 --- a/glib/poppler-attachment.cc +++ b/glib/poppler-attachment.cc @@ -275,6 +275,8 @@ gboolean poppler_attachment_save(PopplerAttachment *attachment, const char *file return result; } +#ifndef G_OS_WIN32 + /** * poppler_attachment_save_to_fd: * @attachment: A #PopplerAttachment. @@ -319,6 +321,8 @@ gboolean poppler_attachment_save_to_fd(PopplerAttachment *attachment, int fd, GE return result; } +#endif /* !G_OS_WIN32 */ + #define BUF_SIZE 1024 /** |