From b7ee7d404cd09a0d6dea447421450141543fb49f Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Thu, 5 Jan 2017 05:29:54 +0000 Subject: [PATCH] Add extern "C" to screentext.h so that Lunatic can see its symbols when building as C++. git-svn-id: https://svn.eduke32.com/eduke32@5997 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/screentext.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/polymer/eduke32/source/screentext.h b/polymer/eduke32/source/screentext.h index 2361a32be..4618f3563 100644 --- a/polymer/eduke32/source/screentext.h +++ b/polymer/eduke32/source/screentext.h @@ -22,6 +22,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #pragma once +#ifdef __cplusplus +extern "C" { +#endif + #define MAXUSERQUOTES 6 extern int32_t quotebot, quotebotgoal; @@ -78,3 +82,7 @@ extern vec2_t G_ScreenTextSize(const int32_t font, int32_t x, int32_t y, const i extern void G_AddCoordsFromRotation(vec2_t *coords, const vec2_t *unitDirection, const int32_t magnitude); extern vec2_t G_ScreenText(const int32_t font, int32_t x, int32_t y, const int32_t z, const int32_t blockangle, const int32_t charangle, const char *str, const int32_t shade, int32_t pal, int32_t o, int32_t alpha, int32_t xspace, int32_t yline, int32_t xbetween, int32_t ybetween, const int32_t f, int32_t x1, int32_t y1, int32_t x2, int32_t y2); extern vec2_t G_ScreenTextShadow(int32_t sx, int32_t sy, const int32_t font, int32_t x, int32_t y, const int32_t z, const int32_t blockangle, const int32_t charangle, const char *str, const int32_t shade, int32_t pal, int32_t o, const int32_t alpha, int32_t xspace, int32_t yline, int32_t xbetween, int32_t ybetween, const int32_t f, int32_t x1, int32_t y1, int32_t x2, int32_t y2); + +#ifdef __cplusplus +} +#endif