Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
78f67f43
Commit
78f67f43
authored
23 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Renamed COMPILER_DESC macro to DESCRIBE_COMPILER.
Changed xp_beep and mswait macros to BEEP and SLEEP.
parent
d09a70d0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xpdev/genwrap.h
+16
-18
16 additions, 18 deletions
src/xpdev/genwrap.h
with
16 additions
and
18 deletions
src/xpdev/genwrap.h
+
16
−
18
View file @
78f67f43
...
...
@@ -75,28 +75,21 @@ extern "C" {
/* Compiler Description */
#if defined(__BORLANDC__)
#define COMPILER
_DESC
(str) sprintf(str,"BCC %X.%02X" \
#define
DESCRIBE_
COMPILER(str) sprintf(str,"BCC %X.%02X" \
,__BORLANDC__>>8,__BORLANDC__&0xff);
#elif defined(_MSC_VER)
#define COMPILER_DESC(str) sprintf(str,"MSC %u", _MSC_VER);
/***
#elif defined(__GNUC__) && defined(__GLIBC__)
#define COMPILER_DESC(str) sprintf(str,"GCC %u.%02u (GLIBC %u.%u)" \
,__GNUC__,__GNUC_MINOR__,__GLIBC__,__GLIBC_MINOR__);
***/
#define DESCRIBE_COMPILER(str) sprintf(str,"MSC %u", _MSC_VER);
#elif defined(__GNUC__)
#define COMPILER
_DESC
(str) sprintf(str,"GCC %u.%02u" \
#define
DESCRIBE_
COMPILER(str) sprintf(str,"GCC %u.%02u" \
,__GNUC__,__GNUC_MINOR__);
#else
/* Unknown compiler */
#define COMPILER
_DESC
(str) strcpy(str,"UNKNOWN COMPILER");
#define
DESCRIBE_
COMPILER(str) strcpy(str,"UNKNOWN COMPILER");
#endif
...
...
@@ -154,23 +147,28 @@ extern "C" {
#if defined(_WIN32)
#define
xp_beep(freq,dur) Beep(freq,dur
)
#define
mswait(x) Sleep(x
)
#define
SLEEP(x) Sleep(x
)
#define
BEEP(freq,dur) Beep(freq,dur
)
#elif defined(__OS2__)
#define
xp_beep(freq,dur)
Dos
B
eep(
freq,dur
)
#define
mswait(x)
Dos
Sl
eep(
x
)
#define
SLEEP(x)
Dos
Sl
eep(
x
)
#define
BEEP(freq,dur)
Dos
B
eep(
freq,dur
)
#elif defined(__unix__)
#define mswait(x) usleep(x*1000)
DLLEXPORT
void
DLLCALL
xp_beep
(
int
freq
,
int
dur
);
#define SLEEP(x) usleep(x*1000)
#define BEEP(freq,dur) unix_beep(freq,dur)
DLLEXPORT
void
DLLCALL
unix_beep
(
int
freq
,
int
dur
);
#else
/* Unsupported OS */
#warning "Unsupported Target: Need some macros or function prototypes here."
#warning "Unsupported Target: Need some macros and/or function prototypes here."
#endif
#ifdef __BORLANDC__
#define xp_random random
#endif
#ifdef __cplusplus
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment