Fixed broken #define guards
@@ -143,13 +143,13 @@ typedef int errno_t;
#pragma clang diagnostic pop
#endif
+#ifndef _WIN32
+
#ifdef __cplusplus
extern "C"
{
#endif
-#ifndef _WIN32
-
/* Data Conversion */
WINPR_API errno_t _itoa_s(int value, char* buffer, size_t sizeInCharacters, int radix);
@@ -171,7 +171,7 @@ extern "C"
* - it's mingw with native libs (not ucrt64) because we didn't managed to have it working
* and not have C runtime deadly mixes
*/
-#if WINPR_MSVCR_ALIGNMENT_EMULATE
+#if defined(WINPR_MSVCR_ALIGNMENT_EMULATE)
#define _aligned_malloc winpr_aligned_malloc
#define _aligned_realloc winpr_aligned_realloc
#define _aligned_recalloc winpr_aligned_recalloc
@@ -182,8 +182,6 @@ extern "C"
#define _aligned_free winpr_aligned_free
#endif
-
-
#ifdef __cplusplus
extern "C"
{
