Commit d3308c5d authored by rswindell's avatar rswindell

Make the entire sbbs_t class definition dependant on JAVASCRIPT #define as

ctrl/*.cpp includes this file and does not use/include libjs.
parent 77c38b01
......@@ -304,7 +304,7 @@ extern int thread_suid_broken; /* NPTL is no longer broken */
#include "text.h"
/* Synchronet Node Instance class definition */
#ifdef __cplusplus
#if defined(__cplusplus) && defined(JAVASCRIPT)
class sbbs_t
{
......@@ -389,8 +389,6 @@ public:
bool input_thread_running;
bool terminate_output_thread;
#ifdef JAVASCRIPT
JSRuntime* js_runtime;
JSContext* js_cx;
JSObject* js_glob;
......@@ -403,8 +401,6 @@ public:
void js_cleanup(void);
bool js_create_user_objects(JSContext*, JSObject* glob);
#endif
char syspage_semfile[MAX_PATH+1]; /* Sysop page semaphore file */
char menu_dir[128]; /* Over-ride default menu dir */
char menu_file[128]; /* Over-ride menu file */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment