Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
b94fc008
Commit
b94fc008
authored
9 years ago
by
Monster Iestyn
Browse files
Options
Downloads
Patches
Plain Diff
doomtype.h tweaks
some of the mess in here really bothers me
parent
ac24ce23
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/doomtype.h
+4
-1
4 additions, 1 deletion
src/doomtype.h
with
4 additions
and
1 deletion
src/doomtype.h
+
4
−
1
View file @
b94fc008
...
@@ -100,11 +100,13 @@ typedef long ssize_t;
...
@@ -100,11 +100,13 @@ typedef long ssize_t;
#if defined (_MSC_VER) || defined (__OS2__)
#if defined (_MSC_VER) || defined (__OS2__)
// Microsoft VisualC++
// Microsoft VisualC++
#ifdef _MSC_VER
#if (_MSC_VER <= 1800) // MSVC 2013 and back
#if (_MSC_VER <= 1800) // MSVC 2013 and back
#define snprintf _snprintf
#define snprintf _snprintf
#if (_MSC_VER <= 1200) // MSVC 2012 and back
#if (_MSC_VER <= 1200) // MSVC 2012 and back
#define vsnprintf _vsnprintf
#define vsnprintf _vsnprintf
#endif
#endif
#endif
#endif
#endif
#define strncasecmp strnicmp
#define strncasecmp strnicmp
#define strcasecmp stricmp
#define strcasecmp stricmp
...
@@ -177,6 +179,8 @@ size_t strlcpy(char *dst, const char *src, size_t siz);
...
@@ -177,6 +179,8 @@ size_t strlcpy(char *dst, const char *src, size_t siz);
// not the number of bytes in the buffer.
// not the number of bytes in the buffer.
#define STRBUFCPY(dst,src) strlcpy(dst, src, sizeof dst)
#define STRBUFCPY(dst,src) strlcpy(dst, src, sizeof dst)
// \note __BYTEBOOL__ used to be set above if "macintosh" was defined,
// if macintosh's version of boolean type isn't needed anymore, then isn't this macro pointless now?
#ifndef __BYTEBOOL__
#ifndef __BYTEBOOL__
#define __BYTEBOOL__
#define __BYTEBOOL__
...
@@ -193,7 +197,6 @@ size_t strlcpy(char *dst, const char *src, size_t siz);
...
@@ -193,7 +197,6 @@ size_t strlcpy(char *dst, const char *src, size_t siz);
#else
#else
typedef
enum
{
false
,
true
}
boolean
;
typedef
enum
{
false
,
true
}
boolean
;
#endif
#endif
//#endif // __cplusplus
#endif // __BYTEBOOL__
#endif // __BYTEBOOL__
/* 7.18.2.1 Limits of exact-width integer types */
/* 7.18.2.1 Limits of exact-width integer types */
...
...
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