From 667c51a7cc5380aaa1b2ab87b209a4901c28c1c8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Sun, 30 Mar 2025 14:55:45 -0400
Subject: [PATCH] Fix Win32 build?

---
 src/sbbs3/js_bbs.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/js_bbs.cpp b/src/sbbs3/js_bbs.cpp
index 5294da349b..c2bbc26be7 100644
--- a/src/sbbs3/js_bbs.cpp
+++ b/src/sbbs3/js_bbs.cpp
@@ -283,7 +283,7 @@ static const char* bbs_prop_desc[] = {
 };
 #endif
 
-extern JSClass     js_bbs_class; // defined later
+extern "C" JSClass     js_bbs_class; // defined later
 static sbbs_t *js_GetPrivate(JSContext *cx, JSObject *obj)
 {
 	return (sbbs_t *)js_GetClassPrivate(cx, obj, &js_bbs_class);
@@ -5136,7 +5136,7 @@ static JSBool js_bbs_enumerate(JSContext *cx, JSObject *obj)
 	return js_bbs_resolve(cx, obj, JSID_VOID);
 }
 
-JSClass js_bbs_class = {
+extern "C" JSClass js_bbs_class = {
 	"BBS"                   /* name			*/
 	, JSCLASS_HAS_PRIVATE    /* flags		*/
 	, JS_PropertyStub        /* addProperty	*/
-- 
GitLab