Commit e0093907 authored by Niklas Haas's avatar Niklas Haas
Browse files

demos/image: fix declaration order

Avoid forward declaration of `struct file`.
parent 8445e72e
...@@ -28,7 +28,6 @@ static struct pl_plane img_plane; ...@@ -28,7 +28,6 @@ static struct pl_plane img_plane;
static struct pl_plane osd_plane; static struct pl_plane osd_plane;
static struct pl_renderer *renderer; static struct pl_renderer *renderer;
static struct pl_custom_lut *lut; static struct pl_custom_lut *lut;
static struct file icc_file;
struct file struct file
{ {
...@@ -36,6 +35,8 @@ struct file ...@@ -36,6 +35,8 @@ struct file
size_t size; size_t size;
}; };
static struct file icc_file;
static bool open_file(const char *path, struct file *out) static bool open_file(const char *path, struct file *out)
{ {
if (!path || !path[0]) { if (!path || !path[0]) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment