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
98977124
Commit
98977124
authored
13 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Added lots of PRI and SCN macros for Win32 builds.
parent
3622fe39
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/xpdev/gen_defs.h
+40
-0
40 additions, 0 deletions
src/xpdev/gen_defs.h
with
40 additions
and
0 deletions
src/xpdev/gen_defs.h
+
40
−
0
View file @
98977124
...
...
@@ -167,12 +167,52 @@ typedef unsigned long long int uint64_t;
#define INTTYPES_H_64BIT_PREFIX "ll"
#endif
/* printf integer formatters: */
#define PRId32 "d"
#define PRIu32 "u"
#define PRIi32 "i"
#define PRIx32 "x"
#define PRIX32 "X"
#define PRIo32 "o"
#define PRIi64 INTTYPES_H_64BIT_PREFIX"i"
#define PRIu64 INTTYPES_H_64BIT_PREFIX"u"
#define PRId64 INTTYPES_H_64BIT_PREFIX"d"
#define PRIx64 INTTYPES_H_64BIT_PREFIX"x"
#define PRIX64 INTTYPES_H_64BIT_PREFIX"X"
#define PRIo64 INTTYPES_H_64BIT_PREFIX"o"
#define PRIdMAX PRId64
#define PRIiMAX PRIi64
#define PRIuMAX PRIu64
#define PRIxMAX PRIx64
#define PRIXMAX PRIX64
#define PRIoMAX PRIo64
/* scanf integer formatters: */
#define SCNd32 PRId32
#define SCNi32 PRIi32
#define SCNu32 PRIu32
#define SCNx32 PRIx32
#define SCNX32 PRIX32
#define SCNo32 PRIo32
#define SCNd64 PRId64
#define SCNi64 PRIi64
#define SCNu64 PRIu64
#define SCNx64 PRIx64
#define SCNX64 PRIX64
#define SCNo64 PRIo64
#define SCNdMAX PRId64
#define SCNiMAX PRIi64
#define SCNuMAX PRIu64
#define SCNxMAX PRIx64
#define SCNXMAX PRIX64
#define SCNoMAX PRIo64
#endif
/* Legacy 32-bit time_t */
...
...
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