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
Package registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jisk
SRB2
Commits
8d3b948e
Commit
8d3b948e
authored
10 years ago
by
Eidolon
Browse files
Options
Downloads
Patches
Plain Diff
cmake: Fix compilation for MSVC 2015
snprintf is now available in MSVC 2015!
parent
ec79756c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/doomtype.h
+2
-2
2 additions, 2 deletions
src/doomtype.h
with
2 additions
and
2 deletions
src/doomtype.h
+
2
−
2
View file @
8d3b948e
...
@@ -100,9 +100,9 @@ typedef long ssize_t;
...
@@ -100,9 +100,9 @@ typedef long ssize_t;
#if defined (_MSC_VER) || defined (__OS2__)
#if defined (_MSC_VER) || defined (__OS2__)
// Microsoft VisualC++
// Microsoft VisualC++
#if
def
_MSC_VER
#if
(
_MSC_VER
<= 1800) // MSVC 2013 and back
#define snprintf _snprintf
#define snprintf _snprintf
#if (_MSC_VER <= 1200)
#if (_MSC_VER <= 1200)
// MSVC 2012 and back
#define vsnprintf _vsnprintf
#define vsnprintf _vsnprintf
#endif
#endif
#endif
#endif
...
...
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