From 9a1b258d130b0b2b3621e93cdbab7d8a79b485bb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 30 Mar 2015 02:18:58 +0200 Subject: [PATCH] (XDK1) Buildfixes --- griffin/griffin.c | 3 +-- screenshot.h | 8 ++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/griffin/griffin.c b/griffin/griffin.c index f943ea7b63..0780c23e54 100644 --- a/griffin/griffin.c +++ b/griffin/griffin.c @@ -665,9 +665,8 @@ SCREENSHOTS ============================================================ */ #if defined(_XBOX1) #include "../xdk/screenshot_xdk1.c" -#else -#include "../screenshot.c" #endif +#include "../screenshot.c" /*============================================================ PLAYLISTS diff --git a/screenshot.h b/screenshot.h index a28cf5def7..71d2079e97 100644 --- a/screenshot.h +++ b/screenshot.h @@ -21,6 +21,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + bool screenshot_dump(const char *folder, const void *frame, unsigned width, unsigned height, int pitch, bool bgr24); @@ -28,4 +32,8 @@ void screenshot_generate_filename(char *filename, size_t size); bool take_screenshot(void); +#ifdef __cplusplus +} +#endif + #endif