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
cf014ef4
Commit
cf014ef4
authored
17 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Start with inttypes.h use.
parent
ccb8a989
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/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 @
cf014ef4
...
...
@@ -61,6 +61,9 @@
#include
<sys/types.h>
#ifdef HAS_INTTYPES_H
#include
<inttypes.h>
#endif
/* Control characters */
#ifndef STX
...
...
@@ -136,6 +139,21 @@ enum {
#endif
#endif
#ifdef HAS_INTTYPES_H
#ifndef BYTE
#define BYTE uint8_t
#endif
#ifndef WORD
#define WORD uint16_t
#endif
#ifndef DWORD
#define DWORD uint32_t
#endif
#ifndef BOOL
#define BOOL int_fast8_t
#endif
#else
/* Windows Types */
#ifndef BYTE
#define BYTE uchar
...
...
@@ -149,6 +167,15 @@ enum {
#ifndef BOOL
#define BOOL int
#endif
#define int8_t char
#define int16_t short
#define int32_t int
#define uint8_t uchar
#define uint16_t ushort
#define uint32_t uint
#endif
#ifndef TRUE
#define TRUE 1
#define FALSE 0
...
...
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