Skip to content
Snippets Groups Projects
Commit 91f839b4 authored by rswindell's avatar rswindell
Browse files

Moved mswait, _mkdir, _rmdir, _fulllpath, and tell() macro definitions from

sbbswrap.h to smbwrap.h.
parent ea11c8a4
No related branches found
No related tags found
No related merge requests found
......@@ -156,28 +156,20 @@ extern "C" {
#if defined(_WIN32)
#define mswait(x) Sleep(x)
#define sbbs_beep(freq,dur) Beep(freq,dur)
#elif defined(__OS2__)
#define mswait(x) DosSleep(x)
#define sbbs_beep(freq,dur) DosBeep(freq,dur)
#elif defined(__unix__)
#define mswait(x) usleep(x*1000)
#define _mkdir(dir) mkdir(dir,0777)
#define _rmdir(dir) rmdir(dir)
#define _fullpath(a,r,l) realpath(r,a)
#define tell(fd) lseek(fd,0,SEEK_CUR)
DLLEXPORT void DLLCALL sbbs_beep(int freq, int dur);
DLLEXPORT char* DLLCALL strrev(char* str);
#else /* Unsupported OS */
#warning "Unsupported Target: Need some macros of function prototypes here."
#warning "Unsupported Target: Need some macros or function prototypes here."
#endif
......
......@@ -81,6 +81,28 @@
#endif
#if defined(_WIN32)
#define mswait(x) Sleep(x)
#elif defined(__OS2__)
#define mswait(x) DosSleep(x)
#elif defined(__unix__)
#define mswait(x) usleep(x*1000)
#define _mkdir(dir) mkdir(dir,0777)
#define _rmdir(dir) rmdir(dir)
#define _fullpath(a,r,l) realpath(r,a)
#define tell(fd) lseek(fd,0,SEEK_CUR)
#else /* Unsupported OS */
#warning "Unsupported Target: Need some macros or function prototypes here."
#endif
#include "smblib.h" /* SMBEXPORT/SMBCALL */
#ifndef BOOL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment