From c34d9688725f775b253afa427060bd6c848a99f7 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 9 Nov 2001 18:25:51 +0000 Subject: [PATCH] Moved bbs_thread function prototypes from bbs_thrd.h into startup.h. --- src/sbbs3/startup.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/src/sbbs3/startup.h b/src/sbbs3/startup.h index f04300ff6f..6f85b30afb 100644 --- a/src/sbbs3/startup.h +++ b/src/sbbs3/startup.h @@ -35,6 +35,9 @@ * Note: If this box doesn't appear square, then you need to fix your tabs. * ****************************************************************************/ +#ifndef _STARTUP_H_ +#define _STARTUP_H_ + #ifdef _WIN32 #include <windows.h> #endif @@ -103,3 +106,42 @@ typedef struct { #define BBS_OPT_LOCAL_TIMEZONE (1<<30) /* Don't force UCT/GMT */ #define BBS_OPT_MUTE (1<<31) /* Mute sounds */ +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef DLLEXPORT +#undef DLLEXPORT +#endif +#ifdef DLLCALL +#undef DLLCALL +#endif + +#ifdef _WIN32 + #ifdef SBBS_EXPORTS + #define DLLEXPORT __declspec(dllexport) + #else + #define DLLEXPORT __declspec(dllimport) + #endif + #ifdef __BORLANDC__ + #define DLLCALL __stdcall + #else + #define DLLCALL + #endif +#else + #define DLLEXPORT + #define DLLCALL +#endif + +/* arg is pointer to static bbs_startup_t* */ +DLLEXPORT void DLLCALL bbs_thread(void* arg); +DLLEXPORT void DLLCALL bbs_terminate(void); +DLLEXPORT const char* DLLCALL js_ver(void); +DLLEXPORT const char* DLLCALL bbs_ver(void); +DLLEXPORT long DLLCALL bbs_ver_num(void); + +#ifdef __cplusplus +} +#endif + +#endif /* Don't add anything after this line */ -- GitLab