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
3f9e493d
Commit
3f9e493d
authored
4 years ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
define U?INT[0-9]+_(MIN|MAX) for builds without stdint.h (ie: Borland)
parent
affced6d
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
+27
-0
27 additions, 0 deletions
src/xpdev/gen_defs.h
with
27 additions
and
0 deletions
src/xpdev/gen_defs.h
+
27
−
0
View file @
3f9e493d
...
...
@@ -163,11 +163,38 @@ enum {
#if !defined(HAS_STDINT_H)
typedef
char
int8_t
;
#ifndef INT8_MAX
#define INT8_MAX 0x7f
#endif
#ifndef INT16_MAX
#define INT16_MAX (-0x7f-1)
#endif
typedef
short
int16_t
;
#ifndef INT16_MAX
#define INT16_MAX 0x7fff
#endif
#ifndef INT16_MIN
#define INT16_MIN (-0x7fff-1)
#endif
typedef
long
int32_t
;
#ifndef INT32_MAX
#define INT32_MAX 0x7fffffff
#endif
#ifndef INT32_MIN
#define INT32_MIN (-0x7fffffff-1)
#endif
typedef
uchar
uint8_t
;
#ifndef UINT8_MAX
#define UINT8_MAX 0xff
#endif
typedef
ushort
uint16_t
;
#ifndef UINT16_MAX
#define UINT16_MAX 0xffff
#endif
typedef
ulong
uint32_t
;
#ifndef UINT16_MAX
#define UINT16_MAX 0xffffffff
#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