-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca492a4
commit d17fa1b
Showing
5 changed files
with
63 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
#ifndef _STDBOOL_H | ||
#define _STDBOOL_H | ||
|
||
/******************************************************************************* | ||
* This file contains the definitions specified in stdbool.h. It is provided to | ||
* allow coreMQTT to be built using compilers that do not provide their own | ||
* stdbool.h defintion. | ||
* | ||
* To use this file: | ||
* | ||
* 1) Copy this file into a directory that is in your compiler's include path. | ||
* The directory must be part of the include path for system header files, | ||
* for example passed using gcc's "-I" or "-isystem" options. | ||
* | ||
* 2) Rename the copied file stdbool.h. | ||
* | ||
*/ | ||
|
||
#ifndef __cplusplus | ||
|
||
/* _Bool was introduced in C99. */ | ||
#define bool int | ||
#define false 0 | ||
#define true 1 | ||
|
||
#endif | ||
|
||
#define __bool_true_false_are_defined 1 | ||
|
||
#endif /* _STDBOOL_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
#ifndef _STDINT_H | ||
#define _STDINT_H | ||
|
||
/******************************************************************************* | ||
* THIS IS NOT A FULL stdint.h IMPLEMENTATION - It only contains the definitions | ||
* necessary to build the coreMQTT code. It is provided to allow coreMQTT to be | ||
* built using compilers that do not provide their own stdint.h definition. | ||
* | ||
* To use this file: | ||
* | ||
* 1) Copy this file into a directory that is in your compiler's include path. | ||
* The directory must be part of the include path for system header file, | ||
* for example passed using gcc's "-I" or "-isystem" options. | ||
* | ||
* 2) Rename the copied file stdint.h. | ||
* | ||
*/ | ||
|
||
typedef signed char int8_t; | ||
typedef unsigned char uint8_t; | ||
typedef short int16_t; | ||
typedef unsigned short uint16_t; | ||
typedef long int32_t; | ||
typedef unsigned long uint32_t; | ||
|
||
#define UINT16_MAX ( ( unsigned short ) 65535 ) | ||
|
||
#endif /* _STDINT_H */ |