Skip to content

Commit

Permalink
Merge pull request #134 from RICCIARDI-Adrien/fix_posix_machine_types…
Browse files Browse the repository at this point in the history
…_size

machines: posix: Fixed OS base types size on 64-bit development systems.
  • Loading branch information
jlbirccyn authored Sep 8, 2023
2 parents 3f2cafc + b005a46 commit 0323041
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions machines/posix/tpl_os_std_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,47 +27,49 @@
#ifndef TPL_OS_STD_TYPES_H
#define TPL_OS_STD_TYPES_H

#include <stdint.h>

/**
* @typedef uint8
*
* 8 bits unsigned number
*/
typedef unsigned char uint8;
typedef uint8_t uint8;

/**
* @typedef sint8
*
* 8 bits signed number
*/
typedef signed char sint8;
typedef int8_t sint8;

/**
* @typedef uint16
*
* 16 bits unsigned number
*/
typedef unsigned short uint16;
typedef uint16_t uint16;

/**
* @typedef sint16
*
* 16 bits signed number
*/
typedef signed short sint16;
typedef int16_t sint16;

/**
* @typedef uint32
*
* 32 bits unsigned number
*/
typedef unsigned long uint32;
typedef uint32_t uint32;

/**
* @typedef sint32
*
* 32 bits signed number
*/
typedef signed long sint32;
typedef int32_t sint32;

#endif /* TPL_OS_STD_TYPES_H */

Expand Down

0 comments on commit 0323041

Please sign in to comment.