Go to the documentation of this file.
29 #ifndef _COMPILER_PORT_H
30 #define _COMPILER_PORT_H
38 #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
52 #if !defined(R_TYPEDEFS_H) && !defined(USE_CHIBIOS_2)
71 #elif defined(__MCUXPRESSO)
78 #elif defined(__CWCC__)
92 #elif defined(IDF_VER)
113 #define PRIuTIME "lu"
115 #elif defined(__linux__)
116 #define PRIuSIZE "zu"
117 #define PRIXSIZE "zX"
118 #define PRIuTIME "lu"
120 #elif defined(_WIN32)
121 #define PRIuSIZE "Iu"
122 #define PRIXSIZE "IX"
123 #define PRIuTIME "lu"
127 #define PRIuTIME "lu"
131 #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
132 int vsnprintf(
char *dest,
size_t size,
const char *format, va_list ap);
135 #elif defined(__GNUC__)
136 int strcasecmp(
const char *s1,
const char *s2);
137 int strncasecmp(
const char *s1,
const char *s2,
size_t n);
140 #elif defined(__CWCC__)
141 typedef uint32_t time_t;
142 int strcasecmp(
const char *s1,
const char *s2);
143 int strncasecmp(
const char *s1,
const char *s2,
size_t n);
146 #elif defined(__TI_ARM__)
147 int strcasecmp(
const char *s1,
const char *s2);
148 int strncasecmp(
const char *s1,
const char *s2,
size_t n);
151 #elif defined(__XC32)
152 #define sprintf _sprintf
153 int sprintf(
char * str,
const char * format, ...);
154 int strcasecmp(
const char *s1,
const char *s2);
155 int strncasecmp(
const char *s1,
const char *s2,
size_t n);
160 #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
161 #undef __start_packed
162 #define __start_packed
164 #define __end_packed __attribute__((packed))
166 #elif defined(__GNUC__)
167 #undef __start_packed
168 #define __start_packed
170 #define __end_packed __attribute__((__packed__))
172 #elif defined(__CC_ARM)
174 #undef __start_packed
175 #define __start_packed __packed
179 #elif defined(__IAR_SYSTEMS_ICC__)
180 #undef __start_packed
181 #define __start_packed __packed
185 #elif defined(__CWCC__)
186 #undef __start_packed
187 #define __start_packed
191 #elif defined(__TI_ARM__)
192 #undef __start_packed
193 #define __start_packed
195 #define __end_packed __attribute__((__packed__))
197 #elif defined(_WIN32)
199 #undef __start_packed
200 #define __start_packed
207 #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
208 #define __weak_func __attribute__((weak))
210 #elif defined(__GNUC__)
211 #define __weak_func __attribute__((weak))
213 #elif defined(__CC_ARM)
214 #define __weak_func __weak
216 #elif defined(__IAR_SYSTEMS_ICC__)
217 #define __weak_func __weak
219 #elif defined(__CWCC__)
222 #elif defined(__TI_ARM__)
223 #define __weak_func __attribute__((weak))
225 #elif defined(_WIN32)
#define strtok_r(str, delim, p)