From 4284c308beaf50fbcbd381cc1583959666e6c1d39e3ae50b0b6e2af8411250d5 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Fri, 1 Aug 2025 00:39:53 -0400 Subject: [PATCH] C++ implicit typedef. Before I C++ify image, I'll C++ify bitvec. It isn't even built in C++ yet. --- src/image.hh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/image.hh b/src/image.hh index 3ba1b0d..baf974b 100644 --- a/src/image.hh +++ b/src/image.hh @@ -17,6 +17,7 @@ /** @file * The DilloImage data-structure and methods */ +#include #ifdef __cplusplus extern "C" { @@ -37,8 +38,6 @@ extern "C" { * Types */ -typedef struct _DilloImage DilloImage; - typedef enum { DILLO_IMG_TYPE_INDEXED, DILLO_IMG_TYPE_RGB, @@ -57,7 +56,7 @@ typedef enum { IMG_Abort /**< Image transfer aborted */ } ImageState; -struct _DilloImage { +struct DilloImage { void *layout, *img_rndr; /* Parameters as told by image data */