Skip to content

Commit da08c7b

Browse files
committed
fix compilation errors
1 parent 9ab6f71 commit da08c7b

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

libheif/api/libheif/heif.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "file.h"
2727

2828
#include <vector>
29+
#include <memory>
2930

3031

3132
#if HEIF_ENABLE_EXPERIMENTAL_FEATURES

libheif/api/libheif/heif_context.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "api_structs.h"
2323
#include "context.h"
2424
#include "init.h"
25+
#include "file.h"
2526

2627
#include <fstream>
2728
#include <memory>
@@ -30,6 +31,13 @@
3031
#include <vector>
3132
#include <algorithm>
3233

34+
#ifdef _WIN32
35+
// for _write
36+
#include <io.h>
37+
#else
38+
#include <unistd.h>
39+
#endif
40+
3341

3442
heif_context* heif_context_alloc()
3543
{

libheif/api/libheif/heif_context.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -322,14 +322,6 @@ struct heif_error heif_context_write(struct heif_context*,
322322
struct heif_writer* writer,
323323
void* userdata);
324324

325-
326-
#include <libheif/heif_metadata.h>
327-
#include <libheif/heif_aux_images.h>
328-
#include <libheif/heif_entity_groups.h>
329-
#include <libheif/heif_security.h>
330-
#include <libheif/heif_encoding.h>
331-
#include <libheif/heif_decoding.h>
332-
333325
#ifdef __cplusplus
334326
}
335327
#endif

0 commit comments

Comments
 (0)