Azure IoT common library
Dependents: STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more
Diff: azure_c_shared_utility/crt_abstractions.h
- Revision:
- 48:81866008bba4
- Parent:
- 42:0cc3c211ad26
--- a/azure_c_shared_utility/crt_abstractions.h Thu Jul 12 18:10:56 2018 -0700 +++ b/azure_c_shared_utility/crt_abstractions.h Tue Sep 11 11:15:08 2018 -0700 @@ -39,7 +39,7 @@ #endif // __cplusplus #else // _WIN32_WCE /* WINCE does not support bool as C datatype */ -#define __bool_true_false_are_defined 1 +#define __bool_true_false_are_defined 1 #define HAS_STDBOOL @@ -81,8 +81,8 @@ /* Codes_SRS_CRT_ABSTRACTIONS_99_001:[The module shall not redefine the secure functions implemented by Microsoft CRT.] */ /* Codes_SRS_CRT_ABSTRACTIONS_99_040 : [The module shall still compile when building on a Microsoft platform.] */ /* Codes_SRS_CRT_ABSTRACTIONS_99_002: [CRTAbstractions module shall expose the following API]*/ -#ifdef _MSC_VER -#else // _MSC_VER +#if defined (_MSC_VER) || defined (MINGW_HAS_SECURE_API) +#else // _MSC_VER || MINGW_HAS_SECURE_API /* Adding definitions from errno.h & crtdefs.h */ #if !defined (_TRUNCATE) @@ -97,7 +97,7 @@ extern int strcat_s(char* dst, size_t dstSizeInBytes, const char* src); extern int strncpy_s(char* dst, size_t dstSizeInBytes, const char* src, size_t maxCount); extern int sprintf_s(char* dst, size_t dstSizeInBytes, const char* format, ...); -#endif // _MSC_VER +#endif // _MSC_VER || MINGW_HAS_SECURE_API extern unsigned long long strtoull_s(const char* nptr, char** endPtr, int base); extern float strtof_s(const char* nptr, char** endPtr); @@ -137,7 +137,7 @@ #define ISNAN std::isnan } #else // __cplusplus -#error unknown (or C89) compiler, provide ISNAN with the same meaning as isnan in C99 standard +#error unknown (or C89) compiler, provide ISNAN with the same meaning as isnan in C99 standard #endif // __cplusplus #endif // __STDC_VERSION__