From e611616723035d2345cf27e43c8b2eef958d5696 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Thu, 27 Sep 2018 20:37:06 +0200 Subject: [PATCH] Remove the turbojpeg.h dependency from public headers Closes #230 --- libvncclient/tight.c | 2 ++ rfb/rfbclient.h | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libvncclient/tight.c b/libvncclient/tight.c index 64883e5..df01812 100644 --- a/libvncclient/tight.c +++ b/libvncclient/tight.c @@ -23,6 +23,8 @@ #ifdef LIBVNCSERVER_HAVE_LIBZ #ifdef LIBVNCSERVER_HAVE_LIBJPEG +#include "turbojpeg.h" + /* * tight.c - handle ``tight'' encoding. * diff --git a/rfb/rfbclient.h b/rfb/rfbclient.h index ec6ee55..87f4eaa 100644 --- a/rfb/rfbclient.h +++ b/rfb/rfbclient.h @@ -52,7 +52,6 @@ #endif #include #include -#include "turbojpeg.h" #ifdef LIBVNCSERVER_HAVE_SASL #include @@ -428,7 +427,7 @@ typedef struct _rfbClient { #ifdef LIBVNCSERVER_HAVE_LIBZ #ifdef LIBVNCSERVER_HAVE_LIBJPEG /** JPEG decoder state. */ - tjhandle tjhnd; + void *tjhnd; #endif #endif