Skip to content

Commit

Permalink
Adopt arch_freertos.h for CCRH compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
cpq committed Feb 26, 2024
1 parent a0f33ae commit 943e1c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions mongoose.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,13 @@ extern "C" {
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h> // rand(), strtol(), atoi()
#include <stdlib.h> // rand(), strtol(), atoi()
#include <string.h>
#if defined(__ARMCC_VERSION)
#define mode_t size_t
#include <time.h>
#include <alloca.h>
#include <time.h>
#elif defined(__CCRH__)
#else
#include <sys/stat.h>
#endif
Expand Down
5 changes: 3 additions & 2 deletions src/arch_freertos.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h> // rand(), strtol(), atoi()
#include <stdlib.h> // rand(), strtol(), atoi()
#include <string.h>
#if defined(__ARMCC_VERSION)
#define mode_t size_t
#include <time.h>
#include <alloca.h>
#include <time.h>
#elif defined(__CCRH__)
#else
#include <sys/stat.h>
#endif
Expand Down

0 comments on commit 943e1c5

Please sign in to comment.